Error in subdirectories

Discussion in 'Co-op Advertising Network' started by Geir, Sep 2, 2004.

  1. #1
    I am trying to set up an account with the ad network.
    I have it all working on pages in my root directory, but in subdirectories I see the following error message printed right above the ad (ad still shows up):
    Warning: open_basedir restriction in effect. File is in wrong directory in http://www.4freephonebillanalysis.com/footer.txt on line 7

    Can anyone explain in simple words what the problem is, and how I would go about correcting it?

    :) Geir
     
    Geir, Sep 2, 2004 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    It's a restriction your hosting provider has specifically set up so files outside the directory tree cannot be accessed. You can find info on it here:

    http://www.php.net/manual/en/features.safe-mode.php#ini.open-basedir

    Ask them if there is a specific place within your domain you could put it where it would work anywhere within your domain.
     
    digitalpoint, Sep 2, 2004 IP
  3. Geir

    Geir Berserker

    Messages:
    208
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you Shawn,
    It seems putting the ad_network.php file in each directory will remove this warning message.

    Is this an acceptable work-around, or will it cause any trouble on your end?

    :) Geir
     
    Geir, Sep 3, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    No, that won't work... as that will cause way too many ad queries to the server.
     
    digitalpoint, Sep 3, 2004 IP
  5. Geir

    Geir Berserker

    Messages:
    208
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you Shawn,
    I emailed my host, and it seems they have fixed the problem.

    :) Geir
     
    Geir, Sep 3, 2004 IP