I am using the following code to share files in a group from<div><a href="http://pmwiki.org/wiki/Cookbook/SharedPages-Talk">http://pmwiki.org/wiki/Cookbook/SharedPages-Talk</a></div><div>viz</div><div><div><?php if (!defined('PmWiki')) exit(); ## Songs.php</div>
<div>## only alter the directories when a page is posted in this group</div><div>if (@$_REQUEST['action']=='edit'</div><div> && preg_grep('/^post/', array_keys($_REQUEST) ) ) {</div><div> $LockFile = "/home/tahi/public_html/pmwiki/wikishared.d/.flock";</div>
<div> $WikiDir = new PageStore('/home/tahi/public_html/pmwiki/wikishared.d/$Group/$FullName', 1); # writeable shared group</div><div> $WikiLibDirs = array( &$WikiDir,</div><div> new PageStore('wiki.d/$Group/$FullName', 1), # per group subdirectories</div>
<div> new PageStore('$FarmD/wikilib.d/$FullName') );</div><div>}</div><div>## Activate ChordPro recipe</div><div> include_once("$FarmD/cookbook/chordpro.php");</div><div>?></div><div><br></div><div>
I have just had to change from Apache (WXP) to IIS6 (WHS),</div><div>and there seems to be a problem with the path used (so my shared pages are no shows).</div><div><br></div><div>Its not clear to me why the path is supplied for LockFile and WikiDir, but not wiki.d, and why $FarmD is used only once.</div>
<div><br></div><div>I'm looking for an internal variable that I can use that will provide the correct path (regardless of system it is installed on)</div><div><br></div><div>thanks for any advice</div><div><br></div><div>
cheers</div><div><br></div></div><div>Simon</div><div>PS Any <a href="http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test/HomePage?action=diag">http://kiwiwiki.co.nz/pmwiki/pmwiki.php/Test</a>/ page has enablediag</div>