|
Posted by NC on 10/10/64 11:32
Warmbells wrote:
>
> I have a couple of includes on each page on our sitesuch as
>
> <!--#include virtual="siteincludes/bottom_menu.htm"-->
> <!--#config timefmt="%e %B, %Y"-->
> <!--#echo var="LAST_MODIFIED"-->
>
> they work great on all the pages except a couple I have had to use a php
> suffix on
>
> What is the correct way to use the above with a php page?
None; SSI and PHP pages are parsed by different Apache modules. You
can't use SSI within a PHP script. What you can do, however, is to
replace SSI instructions with equivalent PHP code:
// <!--#include virtual="siteincludes/bottom_menu.htm"-->
include 'siteincludes/bottom_menu.htm';
// <!--#config timefmt="%e %B, %Y"-->
// <!--#echo var="LAST_MODIFIED"-->
echo date('F j, Y', filemtime($_SERVER['PHP_SELF']));
Cheers,
NC
[Back to original message]
|