Hi does anyone know how to enable php within a template file ( .tpl ) I have tried enclosing the php within {php} {/php} tags but it doesn't function. If anyone can help I would be grateful. Thanks
If your hosting account is using cPanel to can use the Apache Handlers section to add .tpl or you can jsut put the follwoing in a .htaccess file. AddHandler application/x-httpd-php .tpl
i use and worked.... but only normal html codes works... when i use google adsense for mob php it shows......
i m using Autoindexer script from source forge..... it output is xhtml and works in my mobile..... how do u add a google Mobile adesense code into it.... any one tried ????
@varoon: Try something like: $ads = file_get_contents("ads.txt"); echo $ads; PHP: This reads straight from the file so may work better with Google Ad code. Also, ad code file doesn't need to be a PHP file, can be any file. BMR777