Problem with path and sub directories.

Discussion in 'Co-op Advertising Network' started by mahmood, Apr 17, 2006.

  1. #1
    I have moved to a new hosting - a strange one by the way -.

    The problem is that If I leave include ('ad_network_229.php'); as it is, in sub directories I get "no such file or directory" error. If I change it to include ('http://www.mydomain.com/ad_network_229.php');, It doesn't display any ad and wouldn't validate.

    Any idea?
     
    mahmood, Apr 17, 2006 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
    Change the include to be the full FILE path (not the URL path).
     
    digitalpoint, Apr 17, 2006 IP