Reply to Re: How do I include a SSI in a PHP file?

Your name:

Reply:


Posted by Warmbells on 11/19/05 01:57

Lars Eighner wrote:
> In our last episode,
> <437e5dd9$0$347$da0feed9@news.zen.co.uk>,
> the lovely and talented Warmbells
> broadcast on alt.php:
>
>
>>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?
>
>
> Adjust your server configuration so it knows it has to parse
> php pages.
>
The php page parses okay it has some snippets on it such as

<?php
$function = 'count';
$id = 'Catsaver.zip';
include('./downloads.php');
?>

and

<?php
$function = 'count';
$id = 'Horsesaver.zip';
include('./downloads.php');
?>

and they cause the zip files to be downloaded.

I want to be able to include an html menu and a last updated date

[Back to original 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

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