[PHP] PHP SSI in armony?

2001-07-21 Thread Seb Frost

I want to use both PHP and SSI on the same page.  My server requires that
SSI files are .shtml.  If I set it to also treat .shtml files as php files
(like I have done with .htm) then what will happen?  Will it get parsed
first for php and then for ssi, or the other way round?  Or puke completely?

Or is there a way of doing this that I've overlooked.

- seb


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP SSI in armony?

2001-07-21 Thread Rasmus Lerdorf

 I want to use both PHP and SSI on the same page.  My server requires that
 SSI files are .shtml.  If I set it to also treat .shtml files as php files
 (like I have done with .htm) then what will happen?  Will it get parsed
 first for php and then for ssi, or the other way round?  Or puke completely?

 Or is there a way of doing this that I've overlooked.

Apache 1.3.x does not support multiple content handlers.  You cannot parse
a file both for PHP tags and SSI tags.  The best solution is to convert
your SSI tags to PHP tags.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP SSI in armony?

2001-07-21 Thread Jack Sasportas

The answer is up to you.
You make the shtml generate the php, OR the php generate the shtml...
My guess is probably php generates the shtml, and the reference to
it...
I think that should work...

Seb Frost wrote:

 I want to use both PHP and SSI on the same page.  My server requires that
 SSI files are .shtml.  If I set it to also treat .shtml files as php files
 (like I have done with .htm) then what will happen?  Will it get parsed
 first for php and then for ssi, or the other way round?  Or puke completely?

 Or is there a way of doing this that I've overlooked.

 - seb

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
___
Jack Sasportas
Innovative Internet Solutions
Phone 305.665.2500
Fax 305.665.2551
www.innovativeinternet.com
www.web56.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]