Pdf support in php 5.2.17 version
<p>My php version is 5.2.17. I want to create a pdf using php. i have written this code</p>

<pre><code>$mypdf = PDF_new();
        PDF_open_file($mypdf, "");
        PDF_begin_page($mypdf, 595, 842);
        $myfont = PDF_findfont($mypdf, "Times-Roman", "host", 0);
        PDF_setfont($mypdf, $myfont, 10);
        PDF_show_xy($mypdf, "Sample PDF, constructed by PHP in real-time.", 50, 750);
        PDF_show_xy($mypdf, "Made with the PDF libraries for PHP.", 50, 730);
        PDF_end_page($mypdf);
        PDF_close($mypdf);

        $mybuf = PDF_get_buffer($mypdf);
        $mylen = strlen($mybuf);
        header("Content-type: application/pdf");
        header("Content-Length: $mylen");
        header("Content-Disposition: inline; filename=gen01.pdf");
        print $mybuf;

        PDF_delete($mypdf)
</code></pre>

<p>;</p>

<p>this code is working perfectly on my localhost but on my server this is not working . On my server <code>$mypdf</code> is not created. on my server php 5.2.17 version is used. what is the problem ? i thinks pdf library is not working on my srever. Please help me</p>
