Hello everybody,
Getting the following error when trying to generate a pdf file.
Fatal error: PDFlib error: function 'PDF_set_info' must not be called in
'object' scope in E:\php\pdf.php on line 6
>From what I can tell (google and php manual online) this error is caused
when your webserver (IIS 5 in this case) doesn't have write permissions to
the directory.
This is NOT the case here as far as I can tell. Other scripts I run write
just fine and as seen in the below code, 'abc.txt' is written with no
problems before the script dies with the above error.
Any ideas?
-Peter
<?php
$fp=fopen("abc.txt", "w");
fwrite($fp, 'test');
$pdf = pdf_new();
pdf_open_file($pdf, "e:\php\test.pdf");
pdf_set_info($pdf, "Author", "Uwe Steinmann");
pdf_close($pdf);
pdf_delete($pdf);
echo "<A HREF=getpdf.php>finished</A>";
?>
##################################
Peter Thoenen - Systems Programmer
Commercial Communications
Camp Bondsteel, Kosovo
##################################
"Stumbled Upon"...heh (Score:5, Funny) /.
by $carab on 23:00 23 August 2002 (#4131637)
"ForensicTec officials said they stumbled upon the military networks about
two months ago, while checking on network security for a private-sector
client."
Someone new to a Dvorak probably tried to type in "lynx
http://www.google.com" but instead got "nmap -v -p 1-1024 -sS -P0 army.mil
-T paranoid".
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php