I need to be able to run php code in html files on an existing site
and I don't want to have to change all the htmls to php. I have tried
multiple solutions using htaccess and none have worked so far.

I tried googling for solutions and have tried using all of the
following but they either don't work or the browser tries to download
the file.

AddType application/x-httpd-php .php .htm .html

AddType application/x-httpd-php .php .htm .html

AddHandler application/x-httpd-php5 .html .htm

AddType application/x-httpd-php .php .htm .html

AddHandler x-httpd-php5-cgi .php .htm .html

AddHandler php-script .php .html .htm

AddHandler application/x-httpd-php5 .php .html .htm

AddHandler application/x-httpd-php .html .htm

AddHandler php5-script .php .htm .html

AddHandler application/x-httpd-php .php .htm

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to