[pmwiki-users] Page Store path definition

Simon nzskiwi at gmail.com
Fri Nov 27 01:59:01 CST 2009


Problem solved,
I have to make the path more relative, so to speak.
vis   $FarmD/../../../onewiki/public_html/pmwiki/  etc

thanks, and documentation updated

Simon



2009/11/27 Simon <nzskiwi at gmail.com>

> Thanks, well yes I did write the page, I had great help, but all mistakes
> are mine (to fix ...)
>
> Using $FarmD works fine for one wiki.
>
> My directory structure is
> /home/
>     /onewiki/
>         /public_html/
>             /pmwiki/
>                 /wiki.d/
>                 /wikishared.d/
>     /twowiki/
>         /public_html/
>             /pmwiki/
>                 /wiki.d/
>
> My challenge seems to be to let IIS access wikishared.d from twowiki, hmmm
> I'll keep you posted, but if anyone has ideas  (file system in NTFS)
>
> thanks
>
> Simon
>
>
> 2009/11/26 Petko Yotov <5ko at 5ko.fr>
>
> On Wednesday 25 November 2009 10:31:31 Simon wrote:
>> > I am using the following code to share files in a group from
>> > http://pmwiki.org/wiki/Cookbook/SharedPages-Talk
>>
>> Well, this section seems to have been written by you -- you might try to
>> contact the author... :-)
>>
>> > viz
>> > <?php if (!defined('PmWiki')) exit(); ## Songs.php
>> > ## only alter the directories when a page is posted in this group
>> > if (@$_REQUEST['action']=='edit'
>> >  && preg_grep('/^post/', array_keys($_REQUEST) ) ) {
>> >   $LockFile = "/home/tahi/public_html/pmwiki/wikishared.d/.flock";
>> >   $WikiDir = new
>> > PageStore('/home/tahi/public_html/pmwiki/wikishared.d/$Group/$FullName',
>> > 1); # writeable shared group
>> >   $WikiLibDirs = array(  &$WikiDir,
>> >     new PageStore('wiki.d/$Group/$FullName', 1), # per group
>> subdirectories
>> >     new PageStore('$FarmD/wikilib.d/$FullName')  );
>> > }
>>
>> Always use $FarmD/wikilib.d and $FarmD/wikishared.d including for the
>> .flock
>> file and not /home/.../wikishared.d.
>>
>>  LockFile = "$FarmD/wikishared.d/.flock";
>>  $WikiDir = new PageStore('$FarmD/wikishared.d/$Group/$FullName', 1);
>>  # what you have next should work fine
>>
>> Petko
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091127/e1f16736/attachment.html 


More information about the pmwiki-users mailing list