Re: writing pdf files to physical files...
| From: | Brian McGarvie | Date: | Mon, 25 Nov 2002 16:59:48 +0000 |
| Subject: | Re: writing pdf files to physical files... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121442@lists.php.net to get a copy of this message | ||
yes it does...
/me answered myself again ;)
"Brian McGarvie" <brian.mcgarvie@anypurposeloans.co.uk> wrote in message
news:20021025145239.65314.qmail@pb1.pair.com...
> I presently generate pdf files as required...
>
> I use FPDF for writing PDF...
>
> I require to save these to file... is it a simple case of:
>
> where the script: generate_stats_view_table_pdf.php generates the PDF...
>
> <?
> $fcontents= file
>
> ('http://www.domain.com/autoreport/generate_stats_view_table_pdf.php');
> while (list ($line_num, $line) = each ($fcontents)) {
> $display .= $line;
> }
>
>
$fp=fopen("/usr/local/psa/home/vhosts/domain.com/httpdocs/admin/hourly/stats
> _detailed.pdf","w");
> fputs($fp,$display);
> fclose($fp);
> ?>
>
> TIA...
>
>