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>&lt;?php if (!defined(&#39;PmWiki&#39;)) exit(); ## Songs.php</div>
<div>## only alter the directories when a page is posted in this group</div><div>if (@$_REQUEST[&#39;action&#39;]==&#39;edit&#39;</div><div> &amp;&amp; preg_grep(&#39;/^post/&#39;, array_keys($_REQUEST) ) ) {</div><div>  $LockFile = &quot;/home/tahi/public_html/pmwiki/wikishared.d/.flock&quot;;</div>
<div>  $WikiDir = new PageStore(&#39;/home/tahi/public_html/pmwiki/wikishared.d/$Group/$FullName&#39;, 1); # writeable shared group</div><div>  $WikiLibDirs = array(  &amp;$WikiDir,</div><div>    new PageStore(&#39;wiki.d/$Group/$FullName&#39;, 1), # per group subdirectories</div>
<div>    new PageStore(&#39;$FarmD/wikilib.d/$FullName&#39;)  );</div><div>}</div><div>## Activate ChordPro recipe</div><div>  include_once(&quot;$FarmD/cookbook/chordpro.php&quot;);</div><div>?&gt;</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&#39;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>