From: Reini U. <ru...@x-...> - 2005-04-13 19:25:58
|
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/ |