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...
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.
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?
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).
Okay, that kinda worked . 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
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.