PDFLib 6
Posted by: bmp78 (---.freedom2surf.net)
Date: April 19, 2006 11:42AM

Hi there,
I've just upgraded from a Win2k/Abyss Web Server/PHP4/MySQL 4 setup to the latest version of WAMP (PHP5/MySQL5). Most things still work fine on the new setup, however I'm having trouble with PDFLib. My scripts try to create a file with a name like:


This worked on the old setup, because my webroot has a subfolder called "reports", where the PHP script runs, and a subfolder called "pdf", where the PDF files get created.

On the new setup, pdflib dies because it can't create the file. When I remove all the path details, i.e:


the file gets created in the "D:\WAMP\Apache" folder, which is inaccessible (as far as I know) to end users. If, however, I create a file using fopen, the file is created in the same folder as the PHP script, as I would expect.

Is there a setting I need to change to get PDFLib to create its files within the www tree, or is there another solution? Any suggestions will be gratefully received.


Options: ReplyQuote

Sorry, only registered users may post in this forum.