Click to See Complete Forum and Search --> : php within html files


trooper
05-05-2001, 11:48 AM
Hi all

I've set up apache 1.3.19 on my win98 machine and have got it to work with php.4.05.

What i want to know is in the httd.conf file
what do i have to do to allow .htm or .html files to contain php code so that it is correctly parsed like .php files ?

Thanks
Gary

Anon
05-06-2001, 05:37 AM
Put these lines in your apache config file (httpd.conf):

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