This is weird... I put up the code on an AWS site. The home page is an html one and the ads show with no problems, but if you go to any inner page, which are htm, I get the raw code. I am parsing both html and htm, so I don't understand what is wrong Any help? www.discount-computer.info
Your .htm document is not parsing php . I can see the raw <?php .... ?> block try adding this line AddType application/x-httpd-php .php .htm .html (or just .htm) and move the AddHandler lines to the top of the file (as with the AddType line)
Sorry... you lost me... so, I need to add an extra line with AddType application/x-httpd-php .php .htm .html?
(I'm an idiot) I came into this thread from an adsense thread - I was looking at adsense ads sheesh - some great help I am - I am not seeing COOP ads on inner pages - sorry
Put this at the top of the file AddType application/x-httpd-php .php .htm .html AddHandler application/x-httpd-php .htm AddHandler application/x-httpd-php .html Made no difference at all, damn site refuses to parse the code, but only with htm pages, html work fine. WTF?
Fryman: your rewrite rules redirect everything to computer.cgi .. which is probably a perl or shell script... somewhere down the line your 'footer.php' or something will be included, and will be outputed as just normal txt.[no parsing] check that and also, create a stupid file like testing.htm in the dir that is concerned with some simple php like <? echo "yes!"; ?> see if that simple thing works. if so, focus on the computer.cgi script
Nintendoooooooooooooooo where are youuuuuuuuu???????? This thing is using that mr rat script... it uses all kind of weird templates. Since I don't know any php I am just completely lost... Oh, well... I'll just go to scriptlance and hire some guy to get this done
Dammit... not one lousy programmer has answered to my project at scriptlance and I am sick of sitting here waiting to get this fixed, where else can I hire someone to do this?
Thanks, but it isn't a problem with the file, the problem is being able to parse php in a cgi script Shawn, any idea of what can I do?
You can't parse php in a cgi script. You need to use a wrapper. Check out this thread: http://forums.digitalpoint.com/showthread.php?t=8133. I use this for my AWS sites and it works great. Good luck.