[BNM] PHP include mystery

Jason Bailey jasonslbailey at yahoo.co.uk
Thu Aug 23 11:38:07 BST 2007


"Warning: include(scripts/file_2.php) [function.include
 ]: failed to
open stream: No such file or directory in
/usr/local/home/httpd/vhtdocs/testsite/scripts/file_1.php on line 10"

 Does this make any sense to anyone, is there a config in php.ini that
can affect how includes work relatively?

 
Thanks for any help!

Hello,

I'm not sure if you need to edit php.ini but I would try and test this by trying to do an include on each file seperately. You may find it's something silly like permissions on one of the files which a bit of chmod-ing will sort out e.g. the file to be included hasn't got www read permissions?

Also this might show that the paths are wrong. 

Those are the kind of mistakes I make on include files.

Jason

       
---------------------------------
 For ideas on reducing your carbon footprint visit Yahoo! For Good this month.


More information about the BNMlist mailing list. Powered by Wessex Networks