[pmwiki-users] Problems using index.php

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 14 13:14:38 CST 2007


On Thu, Feb 15, 2007 at 08:10:19AM +1300, Simon wrote:
> I have the following directory structure
> (for a private PmWiki for a project)
> 
> /public_html/co/pmwiki/
> 
> pmwiki.php exists in the pmwiki directory
> 
> I only have access to /co/
> I want to be able to have users enter http://example.co.nz/co
> so I created index.php
> 
> <?php include('pmwiki/pmwiki.php');

PmWiki always looks for local/ in the current directory.

Try the following instead:

    <?php chdir('pmwiki'); include('pmwiki.php');

You might also look at some of the options for "clean urls",
at http://www.pmwiki.org/wiki/Cookbook/CleanUrls .

Pm



More information about the pmwiki-users mailing list