1/21 code doesn't see ads, 2/22 code can't write ad file

Discussion in 'Co-op Advertising Network' started by briandunning, Feb 28, 2005.

  1. #1
    I just got notified that ads were not found on the home page at www.briandunning.com, which obviously they do appear and work fine ... manually revalidating didn't help, so I checked for new code and posted the 2/22 version. It couldn't write to my ad file. Permissions were already at 777, I reset them to 777 to make sure, and it still couldn't write to it. So I downgraded the code to the 1/21 version and the ads appear fine again, but the validator still reports that it can't see the ads. Anyone have a suggestion?
     
    briandunning, Feb 28, 2005 IP
  2. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #2
    Maybe the editors are so greedy they don't want your site competing against theirs... :rolleyes:
     
    fryman, Feb 28, 2005 IP
  3. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #3
    I don't see any ads. Try viewing from different machine. Do not have a clue concerning the fix.

    Shannon
     
    Smyrl, Feb 28, 2005 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
    The .txt file will have a different name. If you update your code, you also need to update the name of your .txt file.
     
    digitalpoint, Feb 28, 2005 IP
  5. briandunning

    briandunning Active Member

    Messages:
    262
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    98
    #5
    Aahhh -- so it does. Version numbers in the filenames? Very good. I missed that.

    The ads are appearing now with the new code, but it still doesn't validate. Check it out: www.briandunning.com, ads are at the bottom of the dk blue column on the left under the words "Our supporters."
     
    briandunning, Feb 28, 2005 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    Your server isn't seeing $_SERVER['REMOTE_ADDRESS'] properly. Try adding this to the end of your PHP script:

    echo '<!-- ' . $_SERVER['REMOTE_ADDR'] . ' -->';
    PHP:
    and see if it gives your IP address.
     
    digitalpoint, Feb 28, 2005 IP
  7. briandunning

    briandunning Active Member

    Messages:
    262
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    98
    #7
    I put it in there (though I didn't bother to comment it out to ease troubleshooting) - seems to read that var fine.
     
    briandunning, Feb 28, 2005 IP
  8. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #8
    Where is your ad network .txt file?
     
    digitalpoint, Feb 28, 2005 IP