[pmwiki-users] Linking to pmwiki.php

H. Fox haganfox at gmail.com
Wed Jun 8 11:44:59 CDT 2005


On 6/8/05, Patrick Ogay <lists at basel-inside.ch> 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.

As an operating example, these two are the same:
http://qdig.sourceforge.net/
http://qdig.sourceforge.net/testsite/pmwiki.php

(I suppose I should get around to renaming that directory one of these days.)

Hagan




More information about the pmwiki-users mailing list