Re: pdf in php

From: Date: Fri, 13 Sep 2002 15:47:45 +0000
Subject: Re: pdf in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116290@lists.php.net to get a copy of this message
Check your /auto_prepend_file /configuration settting, if you need it, make sure /home/web/html/pdf.php exists sonjaya wrote:
i create some pdf in php like this : <?php $p=PDF_new(); PDF_open_file($p,""); PDF_begin_page($p,595,842); $font=PDF_findfont($p,"Helvetica-Bold","host",0); PDF_setfont($p,$font,18.0); PDF_set_text_pos($p,50,700); PDF_show=($p,"Tess pdf!"); PDF_continue_text($p,"Line 2 nih"); PDF_end_page($p); PDF_close($p); $buf=PDF_get_buffer($p); $len=strlen($buf); header("Content-type:application/pdf"); header("Content-Lenght:$len"); print $buf; PDF_delete($p); ?> and i get error message like this: Warning: Failed opening '/home/web/html/pdf.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 sicute


« previous php.general (#116290) next »