Can't get ads to show and no validation yet either

Discussion in 'Co-op Advertising Network' started by RichHope, Jan 21, 2005.

  1. #1
    Hi,

    I setup on http://www.KayakPages.com according to the instructions

    1) My .htaccess looks like this (so that my html-files are PHP-parsed)
    AddType application/x-httpd-php .php .htm .html

    2) The ad_network.php is there and ready
    3) The ad_network_ads.txt is chmodded to 777 (why executable is beyond me though) and it is even filled by the ad network. So delivery of the ads seems to work.
    4) Every html-file on the page contains the php-script (and obviously it is being executed also otherwise I would not see the word "Array" there)

    Symptoms:
    When I invoke www.KayakPages.com/index.html I DO see the word "Array" in the allocated space (underneath the menue), but no ads show. And validation fails also.

    Please help! Thanks a lot guys!

    RichHope
     
    RichHope, Jan 21, 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
    Validation will fail if you have no ads, so you can stop trying to validate until you see them.

    What command are you using to echo the ads out?
     
    digitalpoint, Jan 21, 2005 IP
  3. RichHope

    RichHope Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Found the problem.
    Dug into the PHP-code and displayed the ads fine with some debug-statements.

    My problem was that I use a self-written perl-script to create all my pages and that script reacts to [ and ] and interpretes the contents as something. So the line
    echo $ad_network[0]; in my template got mangled into echo $ad_network in the final output-files. Which for php means it's supposed to echo the whole array resulting in the word "Array".

    My solution. Ad some code to my perl-script and make it smarter. Then I'll try it again. We'll see if it validates then.

    Thanks for your help!
    RichHope
     
    RichHope, Jan 21, 2005 IP