Quote:
Originally Posted by Dismounted
No, all you need would be this in your custom files.
PHP Code:
$curdir = getcwd();
chdir('./forums');
require_once('./global.php');
chdir($curdir);
|
Thanks for that tip, sorry i'm late but when i try that it still tries to include from the app directory.
I have this structure, vbulletin is directly in public_html, the web root. The app i'm writing is in a subdirectory of public_html called new. So i do your code but i only do chdir('..'); and i get the error Warning: require_once(/usr/home/foo_bar/public_html/new/includes/init.php) failed to open stream and so forth. You get the idea, basically it's including from the wrong directory.
Edit: I'm sorry, this was my fault and i discovered why now.