[pmwiki-users] Index.php include
wordz2u at gmail.com
Tue Apr 8 09:54:08 CDT 2008
Thanks, that works great. I am not worried about the url, for all I care the
whole world can see I am using PmWiki. I am quite proud of this fact...
On Tue, Apr 8, 2008 at 6:37 AM, Patrick R. Michaud <pmichaud at pobox.com>
> On Mon, Apr 07, 2008 at 10:03:10PM -0600, Steven Benmosh wrote:
> > I have a root directory, and in it a pmwiki directory that includes
> > pmwiki.php and index.php with the line <?php include('pmwiki.php');
> in it.
> > It works fine, and/but wiki pages have the url of
> > www.mysite.com/pmwiki/... In other words, I have a fully functional
> > installation running fine as it is.
> > So I thought I would get smart, and in the root directory's include
> > index.php page with the following:
> > <?php include('/home/words2u/pmwiki/pmwiki.php');
> > or
> > <?php include('pmwiki/pmwiki.php');
> > Now I get the following error:
> > Warning: mkdir() [function.mkdir]: Permission denied in
> > /home/words2u/pmwiki/pmwiki.php on line 435
> This is because the system is attempting to run PmWiki from the
> root directory, and the needed files aren't present. Try the
> following in your root's index.php:
> <?php chdir('pmwiki'); include('pmwiki.php');
> If that doesn't work, then take a look at
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls for some other
> approaches to removing the "pmwiki" from the url.
Check out my web site - www.words2u.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users