Hi DPers, I have to put some lines of php code in an html webpage. I can't change it's extension because it is already indexed by SE with html. I have done a couple of searches and some sites suggest to add this line in .htaccess file [FONT=Arial][SIZE=2][COLOR=black][COLOR=black][FONT=Arial]AddHandler application/x-httpd-php .html .htm[/FONT][/COLOR][/COLOR][/SIZE][/FONT] Code (markup): But this doesn't work for me, because when I access the site I see the download window instead instead of showing the webpage. Any idea? Thanks
no, I'm not using Godaddy hosting. I have tried both, with the first I get the same problem (download windows) and the second doesn't show php output. Otherwise, is there something I can modify in html file headers? Can the following be the problem? <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> Code (markup): Thanks
[FONT=Arial][SIZE=2][COLOR=black][COLOR=black][FONT=Arial]AddHandler application/x-httpd-php .php .htm .html .htm AddHandler application/x-httpd-php5 .php .htm .html .htm[/FONT][/COLOR][/COLOR][/SIZE][/FONT] Code (markup): if your running php 5 I think you have to do that(what I just added to the quote.) if your running php 4, change the 5 in the code to 4, I think. I got it from this article: http://websitedesign.websitesinaflash.com/2007/04/htaccess-addhandler.html