Problems with PHP

"Thiago Esteves" <[email protected]> Wed, 19 Mar 2008 16:18:34 -0300
Newsgroups gmane.comp.apache.mod-layout
Message-ID <[email protected]>
--===============8218894937719321668==
Content-Type: multipart/alternative; 
	boundary="----=_Part_5474_32781259.1205954314463"

------=_Part_5474_32781259.1205954314463
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I found mod_layout some weeks ago when trying to stop adding the same header
and the same footer to *every* page. I installed it and it works well with
simple HTML, but with PHP the results were not so good.

The settings

<Directory /usr/wwwd/data-vhost>
  Options  Indexes FollowSymlinks
  AllowOverride None
  Order Deny,Allow
  Allow from all
  AddOutputFilter LAYOUT html htm php
  LayoutComment on
  LayoutHeader ./header.html
  LayoutFooter ./footer.html
</Directory>

The source of test.php

<? echo 'test' ?>
<p>test</p>


This is the test.php in the browser


MY HEADER HERE
test

test
ound Date: Wed, 19 Mar 2008 18:54:16 GMT Server: Apache/2.0.55 (FreeBSD)
PHP/5.2.0 with Suhosin-Patch mod_ssl/2.0.55 OpenSSL/0.9.7e-p1
Content-Length: 362 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1

MY FOOTER HERE!!!

.

------=_Part_5474_32781259.1205954314463
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi, <br><br>I found mod_layout some weeks ago when trying to stop adding the same header and the same footer to *every* page. I installed it and it works well with simple HTML, but with PHP the results were not so good.<br>
<br>The settings<br><br>&lt;Directory /usr/wwwd/data-vhost&gt;<br>&nbsp; Options&nbsp; Indexes FollowSymlinks<br>&nbsp; AllowOverride None<br>&nbsp; Order Deny,Allow<br>&nbsp; Allow from all<br>&nbsp; AddOutputFilter LAYOUT html htm php<br>&nbsp; LayoutComment on<br>
&nbsp; LayoutHeader ./header.html<br>&nbsp; LayoutFooter ./footer.html<br>&lt;/Directory&gt; <br><br>The source of test.php<br><br>&lt;? echo &#39;test&#39; ?&gt;<br>&lt;p&gt;test&lt;/p&gt;<br><br><br>This is the test.php in the browser<br>
<p align="center"><br></p><p align="center">MY HEADER HERE</p> 




test<p>test</p>
ound
Date: Wed, 19 Mar 2008 18:54:16 GMT
Server: Apache/2.0.55 (FreeBSD) PHP/5.2.0 with Suhosin-Patch mod_ssl/2.0.55 OpenSSL/0.9.7e-p1
Content-Length: 362
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=iso-8859-1





<p align="center">MY FOOTER HERE!!!</p><br><p align="center">.<br></p>

------=_Part_5474_32781259.1205954314463--

--===============8218894937719321668==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mod_layout mailing list
[email protected]
http://lists.tangent.org/mailman/listinfo/mod_layout

--===============8218894937719321668==--