Thanks for your help.
When I include a vBulletin file, with:
Code:
require_once('discuss/global.php');
or
require_once('./discuss/global.php');
I get this:
Warning: main(./includes/init.php): failed to open stream: No such file or directory in /home/dvcreato/public_html/discuss/global.php on line 18
Fatal error: main(): Failed opening required './includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/dvcreato/public_html/discuss/global.php on line 18
I think this is because the php file I am including is also trying to include files, but from the wrong directory (the directory I am calling it from).
Does vBulletin have some kind of relative path variable that I can add to?
I have tried the function ini_set() but same result.
:surprised:
Thanks again,
-josh