trouble displaying ads

Discussion in 'Co-op Advertising Network' started by kitsguru, Jul 2, 2005.

  1. #1
    I posted a message earlier about not validating and tracked a php problem back to my ISP. They told me that php code would not run within an HTML file. Well, we have fixed that.

    Anyway now when I test for the ads and run the new 304 script, I see that the text file is populated but it doesnot display correctly. I only get a less than sign < and nothing else.

    Any ideas?
     
    kitsguru, Jul 2, 2005 IP
  2. kitsguru

    kitsguru Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It appears that $_SERVER['DOCUMENT_NAME'] does not return any value. When I search the PHP.net website and check for valid $HTTP_SERVER_VARS, the document_name is not listed as a valid parameter.

    What am I missing?

    Thanks
    Jeff
     
    kitsguru, Jul 2, 2005 IP
  3. kitsguru

    kitsguru Guest

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It turns out that my site does not have the document_name variable activated. So I change the ad_network script to

    if (substr (@$_SERVER['REQUEST_URI'], -6) == '.shtml' || $_SERVER['REQUEST_URI'] == '/') {

    Now I can validate and display ads correctly.
     
    kitsguru, Jul 5, 2005 IP