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 <[email protected]> > 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 <[email protected]> > > 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 >> > > >
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
