[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP3 file extensions



on 2/11/00 10:37 AM, Jonathan D. Hozeska at jhozeska@xxxxxxxxxxx wrote:

> I've recently installed PHP3 to my Raq2 and it is working fine.  I've
> noticed I need to name my files with a .PHP3 extension for the code to be
> parsed properly.  How can I get a PHP3 file to be executed if I give it an
> normal .HTML extension?

you'll need to add a handler to in your httpd.conf to parse all html files.
There will be a slight performance hit if you choose to do this, as mod_php
needs to parse all html and php files regardless of weather there is any php
code in them.  This is not a problem if you are a complete php3 site, but if
you are half and half it may be a problem.

Under the virtual hosts section of the /etc/httpd/conf/httpd.conf that you
want this to apply to :

AddType application/x-httpd-php3 .html

Or update the global configuration in the srm.conf for this to be on all the
sites on the raq:
Change the line:
AddType application/x-httpd-php3 .php3
To:
AddType application/x-httpd-php3 .html .php3

-k