PDA

View Full Version : Problem with global.php


Kahoona
11-22-2004, 03:23 PM
When I goto the index page I recieve this error:


Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/andy/www/docs/forums/global.php on line 50

Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/share/pear') in /home/andy/www/docs/forums/global.php on line 50

Line 50 is:

require_once('./includes/init.php');

I checked the includes folder, and init.php is in there...

Zachery
11-22-2004, 04:14 PM
What did you set the chdir line to in index.php? :)

Our Sponsors
 

Kahoona
11-22-2004, 04:24 PM
Found the problem. I put ../ instead of ./ because I had to move the folder. Thanks.