RE: [PHP] Apache Server Side Includes mixed with PHP pages
| From: | Martin Towell | Date: | Wed, 27 Feb 2002 22:33:10 +0000 |
| Subject: | RE: [PHP] Apache Server Side Includes mixed with PHP pages | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86491@lists.php.net to get a copy of this message | ||
why don't you just do this?
<?php
include "includes/header.html";
echo "Hello";
include "includes/footer.html";
?>
-----Original Message-----
From: Richie Chauhan [mailto:homer_homer@yahoo.com]
Sent: Thursday, February 28, 2002 6:40 AM
To: php-general@lists.php.net
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*******
<!--include virtual="/includes/header.html"-->
<?php echo "Hello"; ?>
<!--include virtual="/includes/footer.html"-->
*******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