[pmwiki-users] Linking to pmwiki.php

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 9 12:56:58 CDT 2005


On Wed, Jun 08, 2005 at 09:44:59AM -0700, H. Fox wrote:
> > If "index.php" links to "yourlib/pmwiki.php"  pmwiki has problems in
> > setting the environment variables correctly.
> 
> For that you could use
> 
> <?php
> chdir('yourlib');
> include('pmwiki.php');
> ?>
> 
> This allows you to install pmwiki in a subdirectory and call it from
> your web document root.  I'm surprised it works, but it does.

For whatever it's worth, this is in fact how I have many of my
wikis configured.

Pm



More information about the pmwiki-users mailing list