I'm trying to post the latest 5 threads in my VBulletin forum (located in /shisha-forum/ directory) on the Index.php of the root directory. I'm trying to use VBExternal Mod, but having some problems. I have loaded the codes on a test page in the following URL: http://www.hookahlounge.net/test.php Code (markup): I am getting this error message: Warning: main(./includes/db_mysql.php) [function.main]: failed to open stream: No such file or directory in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67 Fatal error: main() [function.require]: Failed opening required './includes/db_mysql.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nima/public_html/hookahlounge/shisha-forum/vBExternal.php on line 67 Code (markup): This is what I have on the index.php file (in root folder) to call the VBExternal.php from /shisha-forum/VBExternal.php <?php chdir('./shisha-forum'); require_once('./vBExternal.php'); ?> Code (markup): but it's not working, can anyone help me out ? Thanks
Your not able to read ./includes/db_mysql.php you can either add the full path in php.ini (variable include_path) or use php to append to the set variable.. such as: <? ini_set('include_path',ini_get('include_path').':../includes:'); ?> also, if you are stuck as to what position in the filesystem the include is using do a simple <?php $a = system("pwd"); echo $a; ?> to show where you are. When we host we chroot everything which often throws off traditional include paths. Good luck.