Re: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-28 Thread Joel Boonstra

> Thanks Martin - that does work. I was just thinking in ASP terms. But I
> am curious as to whether Server Side Includes can work together with
> php.

Nope, at least not with Apache <= 2.0.  Apache 2 will let you have
multi-pass parsing, so your PHP could output SSI, which would then be
parsed.  Why you would want this, I don't know, since PHP is much more
fully featured than SSI, and can do everything SSI can.

Joel

-- 
[ joel boonstra | [EMAIL PROTECTED] ]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Richie Chauhan

Thanks Martin - that does work.
I was just thinking in ASP terms. But I am curious as to whether Server Side
Includes can work together with php.

Richie


"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> why don't you just do this?
>
>include "includes/header.html";
>   echo "Hello";
>   include "includes/footer.html";
> ?>
>
> -Original Message-
> From: Richie Chauhan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 6:40 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Apache Server Side Includes mixed with PHP pages
>
>
> Hi all,
> First post to this list.
> I am trying to do the following
>
> ***php file***
>
> 
> 
> 
>
> ***end php file
>
> In the php file the includes aren't parsed by the server, the php
execution
> works.
>
> I have apache setup to do server side includes on .shtml files. I tried
> telling it do it on .shtml and .php files but that stops the php execution
> from taking place.
>
> If the above is possible, would php code in the included file get
processed
> as well?
>
> My background is ASP programming and that is why I am looking at doing
> things this way.
>
> Any help would be great
>
> Thanks
> Richie Chauhan
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Martin Towell

why don't you just do this?



-Original Message-
From: Richie Chauhan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 6:40 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Apache Server Side Includes mixed with PHP pages


Hi all,
First post to this list.
I am trying to do the following

***php file***





***end php file

In the php file the includes aren't parsed by the server, the php execution
works.

I have apache setup to do server side includes on .shtml files. I tried
telling it do it on .shtml and .php files but that stops the php execution
from taking place.

If the above is possible, would php code in the included file get processed
as well?

My background is ASP programming and that is why I am looking at doing
things this way.

Any help would be great

Thanks
Richie Chauhan







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Richie Chauhan

Hi all,
First post to this list.
I am trying to do the following

***php file***





***end php file

In the php file the includes aren't parsed by the server, the php execution
works.

I have apache setup to do server side includes on .shtml files. I tried
telling it do it on .shtml and .php files but that stops the php execution
from taking place.

If the above is possible, would php code in the included file get processed
as well?

My background is ASP programming and that is why I am looking at doing
things this way.

Any help would be great

Thanks
Richie Chauhan







-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php