| Server IP : 104.21.80.248 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/www/myschool/triamudom/check/activity/mpdf/examples/ |
Upload File : |
<?php
ini_set("memory_limit","384M");
// This is because changelog.txt contains over 100000 characters, and preg_* functions in mPDF won't work.
ini_set("pcre.backtrack_limit","200000");
include("../mpdf.php");
$mpdf=new mPDF();
$mpdf->tabSpaces = 6;
$mpdf->allow_charset_conversion=true;
$mpdf->charset_in='windows-1252';
//==============================================================
$html = '
<h1>mPDF</h1>
<h2>ChangeLog</h2>
<div style="border:1px solid #555555; background-color: #DDDDDD; padding: 1em; font-size:8pt; font-family: lucidaconsole, mono;">
';
$lines = file('../CHANGELOG.txt');
$html .= '<pre>';
foreach($lines AS $line) {
$html .= htmlspecialchars($line);
}
$html .= '</pre>';
$html .= '</div>';
//==============================================================
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
?>