Download Anime - Debt Consolidation - Debt Consolidation - Online Advertising - Debt Consolidation

PDA

View Full Version : Need set up HELP!


ViciousSummer
Aug 28th 2004, 4:39 pm
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

digitalpoint
Aug 28th 2004, 4:46 pm
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.

ViciousSummer
Aug 28th 2004, 5:03 pm
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:

digitalpoint
Aug 28th 2004, 5:19 pm
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;
}

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).

ViciousSummer
Aug 28th 2004, 6:22 pm
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

digitalpoint
Aug 28th 2004, 6:30 pm
That is because of your idiotic shopping cart system BTW. Anyway, I fixed it for you.

ViciousSummer
Aug 28th 2004, 6:44 pm
hehe...Thanks :D, but it's still not validating :confused: .

ViciousSummer
Aug 30th 2004, 4:12 pm
Soooooooo...Any chance I'm going to ever get my site to validate? :rolleyes:

digitalpoint
Aug 30th 2004, 4:29 pm
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.

schlottke
Sep 3rd 2004, 1:55 am
Summer, looks like you should switch hosts ;)

payoutwindow
Sep 3rd 2004, 3:57 am
uhmm .. just curios .. Summer & Shawn .. r u guys related??