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
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
Comment