Jinovich
10-22-2010, 11:46 PM
Okay so I can include global.php from / where it exists like so.
/functions.php
include('./global.php');
Its fine with that.
/custompages/foobar/functions.php
However it seems to hate it when I include it as
include('../../global.php');
include('/home/base/public_html/global.php')
hates that errors out with:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/base/public_html/global.php on line 15
Fatal error: require() [function.require]: Failed opening required './includes/class_bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/base/public_html/global.php on line 15
assuming that it is trying to look for these files from /custompages/foobar/instead of /.
How can I fix this,
I want to include global so I dont need to set up the mysql db connections.
/functions.php
include('./global.php');
Its fine with that.
/custompages/foobar/functions.php
However it seems to hate it when I include it as
include('../../global.php');
include('/home/base/public_html/global.php')
hates that errors out with:
Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open stream: No such file or directory in /home/base/public_html/global.php on line 15
Fatal error: require() [function.require]: Failed opening required './includes/class_bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/base/public_html/global.php on line 15
assuming that it is trying to look for these files from /custompages/foobar/instead of /.
How can I fix this,
I want to include global so I dont need to set up the mysql db connections.