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.

Need set up HELP!

Discussion in 'Co-op Advertising Network' started by ViciousSummer, Aug 28, 2004.

  1. #1
    I'm trying to set up the ad network on http://www.hustlerpanties.com and I'm getting the following error on my index.php page:

    You must set the "ad_network_ads.txt" file to be writable.

    On some of the other pages, I get this error message:

    Warning: Undefined index: DOCUMENT_NAME in /home/sites/site34/web/ad_network.php on line 29
    You must set the "ad_network_ads.txt" file to be writable.


    Help! I'm (obviously) not a programmer...:p
     
    ViciousSummer, Aug 28, 2004 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 make your ad_network_ads.txt file writeable... You can do it from a shell with the chmod command, or any normal FTP client should have the option to set permissions for your files.
     
    digitalpoint, Aug 28, 2004 IP
  3. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #3
    Hmmmm, okay. I set the permissions for the file and now I'm getting this error on all my pages:

    Fatal error: Call to undefined function: file_get_contents() in /home/sites/site34/web/ad_network.php on line 11

    But, the banner ad and text ad I've created have disappeared from my ad netword account? :confused:
     
    ViciousSummer, Aug 28, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Oh actually, your version of PHP is too old because file_get_contents() was added to PHP 4.3.0. But if you add this to the beginning of your ad_network.php file, it should work (after the <b><?php</b> line):

    function file_get_contents($url) {
    	$handle = fopen($url, 'r');
    	$string = fread($handle, 204800);
    	fclose($handle);
    	return $string;
    }
    PHP:
    As for the ads, some were not approved because they are "adult in nature", which isn't allowed on the network (remember people use it for their business sites in some cases).
     
    digitalpoint, Aug 28, 2004 IP
  5. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #5
    Okay, that kinda worked :p . The ad's are showing, but my site still won't validate and I'm getting this error above the ad's (on every page except the index):

    Warning: Undefined index: DOCUMENT_NAME in /home/sites/site34/web/ad_network.php on line 34
     
    ViciousSummer, Aug 28, 2004 IP
  6. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #6
    That is because of your idiotic shopping cart system BTW. Anyway, I fixed it for you.
     
    digitalpoint, Aug 28, 2004 IP
  7. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #7
    hehe...Thanks :D, but it's still not validating :confused: .
     
    ViciousSummer, Aug 28, 2004 IP
  8. ViciousSummer

    ViciousSummer Ayn Rand for President! Staff

    Messages:
    3,210
    Likes Received:
    526
    Best Answers:
    0
    Trophy Points:
    308
    #8
    Soooooooo...Any chance I'm going to ever get my site to validate? :rolleyes:
     
    ViciousSummer, Aug 30, 2004 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    It's validating... Problem was your DNS is wrong. You have dns2.digitalpoint.com listed as an authoritative name server. Since that is the same server that is doing the validation, it thinks it should have DNS info, and doesn't bother to look at other name servers (the correct one), and since it didn't have DNS info, it means it couldn't resolve your website's IP address.
     
    digitalpoint, Aug 30, 2004 IP
  10. schlottke

    schlottke Peon

    Messages:
    2,185
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Summer, looks like you should switch hosts ;)
     
    schlottke, Sep 3, 2004 IP
  11. payoutwindow

    payoutwindow Peon

    Messages:
    788
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #11
    uhmm .. just curios .. Summer & Shawn .. r u guys related??
     
    payoutwindow, Sep 3, 2004 IP