[pmwiki-users] PmWiki work directory, re-revisited

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Mon Feb 5 14:33:53 CST 2007


On Mon, 5 Feb 2007, Patrick R. Michaud wrote:

>>>>> pmwiki/
>>>>>      pmwiki.php (including pmwiki.php)
>>>>>      "core"/
>>>>>              scripts/
>> 			pmwiki.php

> This might lead to a problem in computing a value for $FarmD, which 
> really ought to be the directory containing scripts/, cookbook/, etc. 
> So, the pmwiki.php in the root would need to do a bit more than a simple 
> include of scripts/pmwiki.php.  And defining $FarmD as "the parent of 
> scripts/" doesn't feel right to me.

I see. I looked in pmwiki.php, and AFAICT:

 	SDV($FarmD,dirname(__FILE__));

is the crucial line. So basically you're saying that the farm directory is 
the directory pmwiki.php is located in... Have I got it right?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list