|
Posted by John McClumpha on 09/27/08 11:32
On Fri, 18 Nov 2005 23:03:45 +0000, Warmbells
<ged.bee@_please_remove_virgin.net> wrote:
>Hi,
>
>I have a couple of includes on each page on our sitesuch as
>
><!--#include virtual="siteincludes/bottom_menu.htm"-->
>
>and <!--#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?
as you looking for a php equivalent? - if so:
<? include ("siteincludes/bottom_menu.htm"); ?>
or (preferably imho):
<? include_once ("siteincludes/bottom_menu.htm"); ?>
as for a LAST_MODIFIED equivalent... try something like this (I
haven't tested this - just writing from memory here):
<?
$filename = $_SERVER['PHP_SELF'];
echo "$filename was last modified: " . date ("F d Y H:i:s.",
filemtime($filename));
?>
Hope this helps
--
John McClumpha
Darkness Reigns - http://www.incitegraphics.com.au/darkness/
Navigation:
[Reply to this message]
|