Re: pdf routine - good local / bad online
| From: | Floyd Baker | Date: | Thu, 26 Jun 2003 19:38:58 +0000 |
| Subject: | Re: pdf routine - good local / bad online | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-153017@lists.php.net to get a copy of this message | ||
On Thu, 26 Jun 2003 10:40:46 +1000, you wrote:
>Is the pdf module being loaded on the linux machine?
>What is the error message (if any) that's displayed at the "create handle"
>bit ?
>
>Martin
It just stops dead. The body color is still there on the screen but
there is no more output to the screen nor is the pdf file produced.
I'm too lite on linux for the module question. I'll have the guru
look into that... Thanks.
>-----Original Message-----
>From: Floyd Baker [mailto:fbaker@olm1.com]
>Sent: Thursday, 26 June 2003 10:32 AM
>To: php-general@lists.php.net
>Subject: [PHP] pdf routine - good local / bad online
>
>
>
>Hi.
>
>I have a routine creating a pdf file. Here is the script that works
>on the win98 dev box. But when I upload it to the linux online, it
>does not work.
>
>It stops at 'create handle'. Can someone please tell me why?
>
>// GET COMPANY INFO
> while($row = mysql_fetch_array($mysql_result)){
> $name1 = $row['name1'];
> $name2 = $row['name2'];
> $addr1 = $row['addr1'];
> $addr2 = $row['addr2'];
> $city = $row['city'];
> $stat = $row['stat'];
> $zipc = $row['zipc'];
> $phone = $row['phone'];}
>
>// START PDF FILE
> unlink('f:/localhost/adobe/' . $cocode . '_info.pdf');
>
>// create handle for new PDF document
> pdf_delete($pdf);
> $pdf = pdf_new();
>
>// open a file
> pdf_open_file($pdf, 'f:/localhost/adobe/' . $cocode . '_info.pdf');
>
>
>I do change the 'f:/localhost' to https://xx.xx.xx,xx
>when uploaded.
>
>Any thoughts will be greatly appreciated... TIA
>
>Floyd
--