You are here: Re: How do I include a SSI in a PHP file? « All PHP « IT news, forums, messages
Re: How do I include a SSI in a PHP file?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация