Announcement

Collapse
No announcement yet.

I'm not sure if this is me or vB3...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I'm not sure if this is me or vB3...

    I'm just trying to use the vb3 global.php in a file 1 dir down from the forum... but it won't work?

    Fatal error: Failed opening required './includes/init.php' (include_path='.;c:\apache\htdocs\rsc\forum') in c:\apache\htdocs\rsc\forum\global.php on line 18

    File contents:

    PHP Code:
    [size=2]
    <?php
     
    // ####################### SET PHP ENVIRONMENT ###########################
     
    error_reporting(E_ALL & ~E_NOTICE);
     
    // #################### DEFINE IMPORTANT CONSTANTS #######################
     
    define('NO_REGISTER_GLOBALS'1);
     
    define('THIS_SCRIPT''index');
     
    // ######################### REQUIRE BACK-END ############################
     
    require_once('./forum/global.php');
     
     
    then there's my page coding, which is seperate.[/size]


    How am I meant to do this?

  • #2
    Try this
    PHP Code:
    // ####################### SET PHP ENVIRONMENT ###########################

    chdir("./forum");
    error_reporting(E_ALL & ~E_NOTICE);
     
    // #################### DEFINE IMPORTANT CONSTANTS #######################
     
    define('NO_REGISTER_GLOBALS'1);
     
    define('THIS_SCRIPT''index');
     
    // ######################### REQUIRE BACK-END ############################
     
    require_once('./global.php'); 

    Comment


    • #3
      nevermind, got it, added

      chdir('/PATH');

      at the top of the file...

      Comment

      Loading...
      Working...
      X