Graham Cossey wrote:
<snip>
Add the following line to your config "if" you wish to be able to
execute <?php ?> code embedded inside an HTML document.
find:
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
add:
AddType application/x-httpd-php .html
should look like this when done:
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .html
<<<<<<<<<<<<
You should be aware that with this line in place all .html files will
be parsed by php which could slow things down dependant on traffic
volumes. To only send php scripted files to the php interpreter name
those file with an extension like .php (you can use whatever you like)
and use that in the AddType line.
Just a thought.
<snip>
so you're saying its better to have an AddType line for .html and .php?
--
Mark
-----------------------------------------------------------
Paid for by Penguins against modern appliances(R)
Linux User Since 1996
Powered by Mandrake Linux 8.2, 10.0 & RH Fedora Core 3