Question About Sub-directories

Discussion in 'Co-op Advertising Network' started by BarryC, Jan 17, 2005.

  1. #1
    Hi,

    I have a static html site with some pages in the root directory while most are in two other directories (articles and resources). Rather than change the footer code in the sub-directory pages, can I just put a copy of the ad_network.php file in each of those other two folders as well? Thanks for your help.

    Barry
     
    BarryC, Jan 17, 2005 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
    No, one ad_network.php file per site.
     
    digitalpoint, Jan 17, 2005 IP
  3. yonnermark

    yonnermark Peon

    Messages:
    137
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This possibly relates to a problem I think I'm having.

    If you view the source of this page:
    http://www.bedroomtalent.com/guests/

    Scroll right to the bottom of the source code and you'll see the ad_network code about 15 lines up. Notice that it has not been parsed, but is still in it's original php format.

    Does this have anything to do with relative filepaths. The script is trying to include "ad_network.php" which means it is trying to look in the current directory doesn't it? (the "guests" directory) and it won't find it there.

    Bascially, I'm completely stumped about why the links don't appear in my guestbook. So much so that I stopped the guestbook being spidered by linking to it only with javascript, that was a couple of weeks ago and it worked fine but I've just been emailed saying that validation has failed again.

    Any clues please?
     
    yonnermark, Jan 17, 2005 IP