Treating .html pages as PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I'm running PHp 4.4.4 on Apache 2.  In a particular directory, I would
like .html pages to be run thorugh the PHP interpreter -- i.e. have
"<?php" tags evaluated.  Note, that I only want this within a single
directory and not the entire web server.  How could I set this up?

Thanks, - Dave

Re: Treating .html pages as PHP wrote:

Quoted text here. Click to load it

Place the following in a .htaccess file in the directory you want this
to happen:

AddType application/x-httpd-php .html

Kim André Akerø
(remove NOSPAM to contact me directly)

Site Timeline