[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Raq4- php and ssi in .html files
- Subject: Re: [cobalt-users] Raq4- php and ssi in .html files
- From: Brian Curtis <admin@xxxxxxxxxxx>
- Date: Fri Jan 12 05:13:01 2001
- Organization: Pomfret Computer Technologies, LLC
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hello Noel,
Friday, January 12, 2001, 7:48:31 AM, you wrote:
NB1c> Hi,
NB1c> I am trying to use server side includes and php scripting in files with a
NB1c> .html extension.
NB1c> I have added the following to my .htaccess file, the server side includes
NB1c> work fine.
NB1c> But the php is not working, am I missing something very simple.
NB1c> AddType application/x-httpd-php4 .html
NB1c> AddHandler server-parsed .html
NB1c> AddType text/html .html
NB1c> AddHandler server-parsed .htm
NB1c> AddType text/html .htm
AFAIK, you cannot apply more than one handler to a single document
extension. I'm assuming SSI is working over PHP due to the fact that
it's declared afterwards.
There's two options available...
1) server-parse .html and do a <!--#include--> on your php files.
Preferred way:
2) parse all .html with PHP only. There's nothing you can do with SSI
that can't be accomplished with pure PHP.
--
Best regards,
Brian Curtis