From: Yannick L. <Yan...@en...> - 2005-04-14 00:45:42
|
Hello Reini, > 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. Actually, I'm running PhpWiki on IIS 6.0, not on Apache. > > 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. Would I put these readfile calls inside of my template file where I want the SSI files to be loaded? I have tried putting them there and that did not put the contents of the file I listed. Thanks for the help, Yannick |