Posted by John on 10/21/00 11:25
I am setting up a number of web pages and need to use an include with
the following code :
require_once dirname(__FILE__) . '/HTML_ToPDF.php';
$linkToPDFFull = $linkToPDF = tempnam(dirname(__FILE__), 'PDF-');
when this is inside an include statement the path is set to /tmp on
the file created which is wrong and I also get a parse error on the
second line - 'Cannot instantiate non-existent class' (although this
relates to something latter in the code).
However if I past these lines into the html outside of an include all
works fine.
Any ideas?
Thanks John
Navigation:
[Reply to this message]
|