[pmwiki-users] [PATCH] Issue with pmwiki and PHP virtual() function (SSI)

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 9 18:11:43 CST 2005

On Thu, Nov 10, 2005 at 12:57:35AM +0100, Mikael Nilsson wrote:
> >>To illustrate: in the header I use <!--function:includemeta -->, which
> >>is defined in config.php:
> >>
> >>function includemeta($x) {
> >> virtual("/kmr/meta.html");
> >>}
> >
> >Faster/easier is to just use  <!--file:/path/to/kmr/meta.html--> and 
> >avoid the includemeta function (and the virtual call) altogether.
> Yeah, that would work in general. However, in my case, the header.html 
> contains another virtual include of a PHP page generating a sidebar from 
> an RSS feed (using magpierss), so I'm currently relying on apache 
> processing the included page... and file: does not do that for me, now 
> does it :-)

Okay, then try this for your includemeta($x) function:

    function includemeta($x) {
      $cwd = getcwd();                   # get current working dir
      chdir($cwd);                       # change back


More information about the pmwiki-users mailing list