VBulletin Integration Problem

Discussion in 'Programming' started by Nima, Jun 12, 2008.

  1. #1
    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
     
    Nima, Jun 12, 2008 IP
  2. Nima

    Nima Well-Known Member

    Messages:
    3,489
    Likes Received:
    243
    Best Answers:
    0
    Trophy Points:
    175
    #2
    i can offer $10 to whoever help me fix that.

    Thanks
     
    Nima, Jun 14, 2008 IP
  3. ajsbsd.net

    ajsbsd.net Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    ajsbsd.net, Jun 14, 2008 IP