From: Yannick L. <Yan...@en...> - 2005-04-14 14:14:57
|
After taking a second look at your e-mail, I seem to understand that I would need to add these php readfile calls inside of some of the code of phpwiki. I did not find that <?= "Time: ". strftime("%x %X") ?> line anywhere. Can you point out where I should add these php calls to go and read some external files? Thanks, Yannick > -----Original Message----- > From: Reini Urban [mailto:ru...@x-...] > Sent: Wednesday, April 13, 2005 3:27 PM > To: Yannick Lefebvre > Cc: 'php...@li...' > Subject: Re: [Phpwiki-talk] Server-side include > > > Yannick Lefebvre schrieb: > > I have just installed PhpWiki on our corporate intranet. > Everyone who > > has started using it is really liking what they're seeing. > I do have one > > question. Our intranet pages use Server-side include to bring in > > contents from template pages into all of the other pages with the > > following syntax: > > > > <!--#include virtual="/ssi/header.shtml" --> > > > > I have tried adding such links inside of the template (browse.html) > > but > > that did not work (probably because it's not a .shtml page > or perhaps > > for some other reason that I don't comprehend at this point). > > Apache usually doesn't do shtml parsing after the php step, > because php can do much more. > > > For PHP templates, I've also done SSI include with the following > > syntax > > in the past:\ > > > > <?php include("http://intranet/ssi/header.shtml") ?> > > We use some safety measures against external code and > strings. Using the url_fopen feature is also not recommended. > > <?php readfile("/var/www/ssi/footer-start.shtml") ?> > <?= "Time: ". strftime("%x %X") ?> > <?php readfile("/var/www/ssi/footer-end.shtml") ?> > > works for me. > > > But that did not work either in the templates. Does anyone have > > experience at using Server-side includes inside of PHPWiki > templates? If > > so, what is the syntax to use? > -- > > Reini Urban > http://xarch.tu-graz.ac.at/home/rurban/ > http://phpwiki.org/ > |