1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Fatal Error in Ad_network php code?

Discussion in 'Co-op Advertising Network' started by ResearchTechs, Sep 15, 2005.

  1. #1
    On my site researchtechs.com I had the ad network running for quite some time. Recently it stopped working and said I needed to update the code in my ad_network.php. I went and looked for the update in the setup section and realized the name of the php file had been changed to ad_network380.php, so rather than making sure I changed it in every place in the updated code, I just changed the name referenced on my site. Now I'm getting the following error:
    Fatal error: Cannot redeclare file_get_contents_an() (previously declared in /home/research/public_html/ad_network380.php:4) in /home/research/public_html/ad_network380.php on line 4

    Any idea what I need to do to get this working?
     
    ResearchTechs, Sep 15, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    You need to not include() the ad_network file more than once.
     
    digitalpoint, Sep 15, 2005 IP
  3. ResearchTechs

    ResearchTechs Peon

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok, fixed that problem, but now it simply says: Y, o, u, , m
    where the ads should be.
     
    ResearchTechs, Sep 15, 2005 IP
  4. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #4
    change the permission of the ad .txt file to 666
     
    fryman, Sep 15, 2005 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    Also make sure when you echo the ad_network variable, it should be exactly
    echo $ad_network;
    PHP:
     
    digitalpoint, Sep 15, 2005 IP