I added the .htaccess to my main folder and that temporarily solved the problem of it trying to validate my html pages. How ever it has started again. It wants ads on my html pages before it will validate.
hi what code just post the .htaccess lines here what system you are on eg unix apache do you have cpanel do you use anything else than just htm and php coop needs to be shown on all pages that are accessible (excluded are only noindex or equivalent pages) M
I added this line to my .htaccess file: AddType application/x-httpd-php .php .htm .html Heres my error code: Ads not found on (http://www).insurance-quote-now.com/cheap-quotes/pennsylvania-insurance-quote.htm My site is obviously (http://www).insurance-quote-now.com I am only using html and php files (Parenthesis added because of lack of abilty to post links) Tim
I see ads running on the bottom of the index page...but they look messed up as you have 2 banner ads and 2 text ads. What is the code you are using to include the ad network code?
I am using the code for text banner only. I fixed the problem you just mention about the banner ads and text ads. I knew what was casuing that. I still have some work to do on spacing the links at the bottom of the pages. My real problem again is the error code that says theri are no ads on my html files. i use cpanel also.
well, I think the problem is probably in your code on the page, if I had to guess. But, it is impossible to know without seeing it. The ads are not showing, so I would assume that your modifications are not including something the co-op validator is checking for
But I am not using code in the html files Heres the code I am using on the pages <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="45%" id="AutoNumber1"> <tr> <td width="100%"> <p style="text-align: center"><font face="Tahoma" size="1">Thanks to Our Sponsors:<br> <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]; ?> | <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[1]; ?> | <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[2]; ?> | <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[3]; ?> | <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[4]; ?> | </font></td> </tr> </table> </center> </div>
I just went back through this thread. The validation failed for http://www).insurance-quote-now.com/cheap-quotes/pennsylvania-insurance-quote.htm so, there are no ads on that page....
So I need ads on the html pages too? Can I just delete them? I change them all to php so the code would work. I didnt think php would work on a html extension age. BTW sorry to be so thick headed.
Problem seems to be solved. I deleted the html version of the pages. I thought the code that goes in the htaccess solves the problem of having htm files on your site with no ad. But as long as I'm validated I will glady delete them.
no worries. I am not totally following you when you say html versions of the pages. If the pages are in the G index (and linked to on your site) then there is no reason to delete them. You can run php inside .html extension pages, with the right stuff in your .htaccess or httpd.conf file. One important thing, you need to run the ads on EVERY page on your site. The validator will pick pages at random from the Google cache and if it does not find ads on a page, it will fail your site. The code in the htaccess file can do a number of things, but none of it will make it ok not to run the ads on every page of the site. The htaccess stuff can let you run php code inside of .htm or .html pages or it can allow you to use SSI to include the php as an include.
Mmm... I did not know you could run the php code inside the html pages. I was thinking the htaccess code would allow the validator to bypass the html files, but was completey wrong. I will get back to work......
Tdarnold, I noticed from message 9 of this thread that you included the php code that was given to you 5 times. Is that necessary to get the ad to show five times? Here's the code I use. Now I worry that I'm not getting credit for showing 5 ads, even though I am showing 5 ads. Does anybody know whether you have to include the 'ad_network.php' file 5 times, or if it's sufficient to echo the 5 variables like I did? ===================== <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network.php'); echo $ad_network[0]. " ".$ad_network[1]. " ".$ad_network[2]. " ".$ad_network[3]. " ".$ad_network[4]; ?> ============================= - Jim
Thanks Chachi. Actually I was hoping I was doing it wrong, so I could get more weight by doing it right Oh well. Thanks again. Jim
well the ads are showing (at least when I called tha page) the source looks ok just one question do you use the latest code for the php? If so and you can't validate post a validation problem message and give the below details sorry M