Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 34
  1. #11
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    tried that already. didnt work. maybe theres something in php.ini or apache's settings?
    You tried just 1 dot?
    Back for a while.

  2. #12
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    You posted 2 dots?
    Vouches
    [x][x]

  3. #13
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    You posted 2 dots?
    That was Trinity
    Back for a while.

  4. #14
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    Oh lol. So is it 1 or 2 dots?
    Vouches
    [x][x]

  5. #15
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Fazon View Post
    Oh lol. So is it 1 or 2 dots?
    Try include './config.php'; to see if it works
    Back for a while.

  6. #16
    Join Date
    Mar 2009
    Posts
    215
    Tokens
    0

    Default

    Maybe Try:

    PHP Code:
    <?php 
    define
    ('DOCUMENT_ROOT''/path/to/directory');
    include(
    DOCUMENT_ROOT."/config.php");
    ?>
    Remember to edit path to directory
    GeekSRV - UK Shared & Reseller Hosting Solutions.

  7. #17
    Join Date
    Oct 2007
    Posts
    824
    Tokens
    71

    Latest Awards:

    Default

    BTW, I'm actually using require();

    and thanks guys, ill see
    Vouches
    [x][x]

  8. #18
    Join Date
    Oct 2005
    Location
    Melbourne, Australia
    Posts
    7,554
    Tokens
    0

    Latest Awards:

    Default

    Can't you just use include

  9. #19
    Join Date
    Mar 2009
    Posts
    215
    Tokens
    0

    Default

    Quote Originally Posted by Fazon View Post
    BTW, I'm actually using require();

    and thanks guys, ill see
    Just change include to require - and if using require use require_once() - Unless you require it more than once
    GeekSRV - UK Shared & Reseller Hosting Solutions.

  10. #20
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    You are all very silly and should learn to read:

    PHP Code:
    require_once '../MainFolderName/config.php'


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •