View Full Version : Error in trying to get ad network setup
a389951l
Aug 20th 2004, 12:12 pm
I can't seem to get this working. Hosting services does support PHP and I have added to every page. What I am doing wrong?
failed automatic validation as of 2004-08-20 (make sure URL and site type is correct - if everything is correct, it may require manual validation).
site: www.refinance-mortgageloan.com (http://www.refinance-mortgageloan.com)
digitalpoint
Aug 20th 2004, 12:21 pm
I'm not seeing anything there. Where exactly are the ads?
a389951l
Aug 20th 2004, 12:28 pm
I put the following code near the bottom of all my html files:
<?php
ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
include_once ('ad_network.php');
echo $ad_network;
?>
Is this what you mean?
digitalpoint
Aug 20th 2004, 12:30 pm
It looks like the pages are not PHP. Does your server support PHP, and if so, have you tried to override to have .html files evaluated as PHP files?
a389951l
Aug 20th 2004, 12:39 pm
Hey you learn something new everyday. I have a test page: www.refinance-mortgageloan.com/index2.php (http://www.refinance-mortgageloan.com/index2.php). I does load but I get the following errors:
Warning: fopen(ad_network_ads.txt): failed to open stream: Permission denied in E:\inetpub\vhosts\refinance-mortgageloan.com\httpdocs\ad_network.php on line 20
Warning: fwrite(): supplied argument is not a valid stream resource in E:\inetpub\vhosts\refinance-mortgageloan.com\httpdocs\ad_network.php on line 21
Warning: fclose(): supplied argument is not a valid stream resource in E:\inetpub\vhosts\refinance-mortgageloan.com\httpdocs\ad_network.php on line 22
Plasma TV Customer Reviews (http://plasmatelevision.bestpricefan.com/)
I just check the properties and both files are 777 (rwe). But I did receive an ad though.
digitalpoint
Aug 20th 2004, 12:45 pm
Hmmm... the only file that should matter is the .txt file (it needs to allow write functionality access). Maybe it's only setup for write access for your user... You would need write setup globally (or at the very least the user that the web server runs as).
a389951l
Aug 20th 2004, 1:02 pm
Thanks - I am all set. I can see the ads now.
digitalpoint
Aug 20th 2004, 2:28 pm
Curious what you changed to make it work on your end?
a389951l
Aug 20th 2004, 4:09 pm
Nothing complicated. I was using SmartFTP and it didn't play nice when I was trying to change security. I used the control panel provided by the hosting company and that did the trick.
Thanks again.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.