You may be able to, depending on how your server is setup. If the server supports PHP, you may be able to override the extensions so .htm is evaluated as PHP.
yes my server does support the latest php. i have my own server and have some sites that use php now. i already registared but it states account not yet active. i already modified my htaccess and uploaded the other two files and it did write two adds in to the ad_network_ads.txt . i was trying to figure out what to add to my pages to get the account to validate and to show ads but could not get it to work. any help would be apreciated dave
Are ads showing on the site you are trying to validate already? I would assume they would have to if the ad_network_ads.txt has ads in it (unless you called the PHP file directly).
oh, i did call the php directly once. oops. i guess my question is. exctly what code do i need to have on my pages to get the ads to show? the code i tried i have removed because is was not working. or did not seem to work. dave
Have you tried the code that the setup instructions has? http://www.digitalpoint.com/tools/ad-network/setup.php?type=99 Step 3 and higher...
you know, i was using the wrong code. this is what i am using now on my site pages: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include_once ('ad_network.php'); echo $ad_network; ?> PHP: if i chose text link, it would only show a text link correct? if the above is true i see the ads on my page but it does not validate yet. after reading post in forum am i to understand that it will not validate until i add the code to all pages with-in the entire site? dave
Correct... if you select text link only, that's all that would show. You are also correct in the fact that it should be site-wide in order validate properly. Do you have any central header/footer or anything that is global for your site? Would be easier to add it to one place of course if you do.
"Do you have any central header/footer or anything that is global for your site?" i have not figured out how to do that yet. (i am embarrassed to say)
i have everything done except i have some pages working out of the cgi-bin in the coge i tried the original code and tried: <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include_once ('www.mysite.com/ad_network.php'); echo $ad_network; ?> PHP: but can't get the ad to show on cgi pages the cgi pages are also mode-rewrite to html also added the http:// before the www. dave
Start a thread on Server Side Includes. I'm sure you will get lots of help with this rather simple technology.
What type of file is it underneath it all? Basically what would the URL look like without the rewrite?
So you actually have what I assume is a ton of .cgi files in that directory? Do you know how it's done exactly? With SSI or something else?
the cgi script pulls products from an XML feed and produces the page from a template to a page with .cgi then the mode-rewrite changes the .cgi to .html the pages are dynamic. yes it appears as if i have a few hundred thousand pages in that dir is that the info your looking for?
Sort of... kind of hard to help debug it though without seeing the actual CGI code, since an include will be different depending on how the CGI is setup.