I create a pdf.php
<?php
include("mpdf60/mpdf.php");
$url = $_GET['url'];
ob_start();
include($url);
$html = ob_get_clean();
$mpdf=new mPDF('utf-8', 'A3-L');
$mpdf->SetDisplayMode('fullpage');
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
?>
But when pass parameters exemple:
<?php
$url = 'gerencial_consad.php?mes='.$mes.'&ano='.$ano.'&menu=N';
?>
<a href="pdf.php?url=<?php echo $url; ?>">[ Gerar PDF ]</a>
The file PDF is create with the error:
Warning: include(gerencial_consad.php?mes=01): failed to open stream: Result too large in C:\wamp64\www\codforv2\pdf.php on line 7 Call Stack
Time Memory Function Location
1 0.0005 240264 {main}( ) ...\pdf.php: ( ! ) Warning: include(): Failed opening 'gerencial_consad.php?mes=01' for inclusion (include_path='.;C:\php\pear') in C:\wamp64\www\codforv2\pdf.php on line 7 Call Stack
Time Memory Function Location
1 0.0005 240264 {main}( ) ...\pdf.php:
Help me please!!!!
Thanks!