require two files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jay...
    Senior Member
    • Jan 2006
    • 187
    • 3.6.x

    require two files

    I am trying to install two plugins on my own index.php file, both scripts require different files, however i can only get one working at any one time.

    PHP Code:
    <?php 
    chdir
    ("./forums");
    require(
    './global.php');
    require_once(
    './vBExternal.php');
    chdir("../"); 
    ?>
    ive asked on vb.org but had no luck.

    any help would be great
    Last edited by Jay...; Sun 23 Apr '06, 12:57pm.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    I don't fully understand the problem, but you should keep trying for an answer on www.vbulletin.org as that is the appropriate place for questions about custom code.

    Comment

    • Jay...
      Senior Member
      • Jan 2006
      • 187
      • 3.6.x

      #3
      rigth well im using two different hacks, and each require different pages, it seems that i can not require two different pages (global.php & vBExternal.php), however, if i only require one then i can get the appropriate script to work. if i require Just vBExternal.php (on its own) then vBExternal will work, they will not work when put together

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...