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): but it's not working, can anyone help me out ? Thanks
What does line 67 of that file say. It looks like you simply have a wrong path somewhere. Its not finding the file its looking for to actually pull the posts. Nigel
i know, there has to be a path problem here: <?php chdir('./shisha-forum'); require_once('./vBExternal.php'); ?> Code (markup): on the require_once('./vBExternal.php'); Code (markup): Should I be doing anything different? VBExternal.php is in the /shisha-forum/ directory.
try ('../vBExternal.php'); not exactly sure I would have to poke around your ftp a sec to be sure. Someone in the programming forum could likely help you quicker without having to go into your server and check the paths. Nigel
i dont think ('../vBExternal.php') would work. because the page is in the root directory (/index.php) but the forum is in /shisha-forum/index.php). and the VBExternal.php file is located in the root folder
I would have to crawl in there and look. You likely get a quick answer in programming or the site admin forum. I would post it there. Its a simple issue. Nigel