Need help setting up text ads

Discussion in 'Co-op Advertising Network' started by RickW, Jun 11, 2005.

  1. #1
    I am trying out the coop ads for http://www.antisource.com. I followed the instructions and setup the php file (5 text ads) and txt file (set it's permissions to 666), and added the include code onto my site. But the include stays blank; it doesn't give me any kind of php error.

    What reasons are there that the ads would not load? Did I miss a step?
     
    RickW, Jun 11, 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
    Did you add the "echo" line after the include?
     
    digitalpoint, Jun 11, 2005 IP
  3. RickW

    RickW Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes. It's actually not a direct echo, it looks like this:

    function phpblock_myads()
    {
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('http://www.antisource.com/ad_network_284.php');
    return $ad_network;
    }
    Code (markup):
    I'm using geeklog, and this is a custom phpblock function. Return $ad_network; then sends it back to the block which gets displayed on every page in my site. To make sure this function was working, I appended "test" to the $ad_network variable before returning the value, and all I could see is test.

    edit:
    Oops! I fixed it. It looks like I needed to change the include to a full local path instead of a url. I'm ready to go...
     
    RickW, Jun 11, 2005 IP