import global.php from another dir blues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doron
    Senior Member
    • Apr 2000
    • 669

    import global.php from another dir blues

    I'm trying to access global.php for a program I wrote. vB is in /forums, the script is in /test.

    This gives me the error:

    [quote]Fatal error: Failed opening required 'admin/config.php' in /xelitecaraudio/www/forums/global.php on line 29[/quote]

    If I hack a global.php with the correct root and incude that, I get:

    [quote]Fatal error: DB_Sql_vb is not a class in global.php on line 39[/quote]

    Anyone know what I am doing wrong?

  • TechTalk
    Senior Member
    • Jul 2000
    • 769

    #2
    Try changing to the directory before including the file

    [code]
    chdir("/full/path/to/admin");
    [/code]

    ~Chris

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎