<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 10:19 AM, Petko Yotov <span dir="ltr">&lt;<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Thursday 09 April 2009 16:02:23 Sameer Kumar wrote:<br>
&gt; if ($_SERVER[&#39;SERVER_ADDR&#39;] == &quot;127.0.0.1&quot;){<br>
&gt;  $ScriptUrl = &#39;<a href="http://localhost/" target="_blank">http://localhost/</a>&#39;;<br>
&gt;  $PubDirUrl = &#39;<a href="http://localhost/pub" target="_blank">http://localhost/pub</a>&#39;;<br>
&gt; # $EnablePathInfo=0;<br>
&gt; }<br>
&gt; else {<br>
&gt; $ScriptUrl = &#39;<a href="http://wiki.kumarsingh.com" target="_blank">http://wiki.kumarsingh.com</a>&#39;;<br>
&gt; $PubDirUrl = &#39;<a href="http://wiki.kumarsingh.com/pub" target="_blank">http://wiki.kumarsingh.com/pub</a>&#39;;<br>
&gt; }<br>
&gt;<br>
&gt; However, once loaded, all links resolve to literally:<br>
&gt; <a href="http://localhost" target="_blank">http://localhost</a>***/Group/Page ! (including the three asterixes).<br>
&gt; Looking at the source of this page, I could see the following:<br>
&gt;<br>
&gt;  &lt;link rel=&#39;stylesheet&#39;<br>
&gt; href=&#39;<a href="http://localhost" target="_blank">http://localhost</a>***/skins/cpmwiki/cpmwiki.css&#39; type=&#39;text/css&#39; /&gt;<br>
&gt;   &lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://localhost" target="_blank">http://localhost</a><br>
&gt; ***/skins/cpmwiki/sorttable.js&quot;&gt;&lt;/script&gt;<br>
<br>
</div>You could just leave PmWiki find its files and directories onyour local<br>
installation:<br>
<br>
if ($_SERVER[&#39;SERVER_ADDR&#39;] != &quot;127.0.0.1&quot;) # only NOT at home<br>
<div class="im">{<br>
   $ScriptUrl = &#39;<a href="http://wiki.kumarsingh.com" target="_blank">http://wiki.kumarsingh.com</a>&#39;;<br>
   $PubDirUrl = &#39;<a href="http://wiki.kumarsingh.com/pub" target="_blank">http://wiki.kumarsingh.com/pub</a>&#39;;<br>
</div>   $EnablePathInfo=1;<br>
}<br>
<br>
Also, be sure to remove or comment-out other lines starting with $ScriptUrl=,<br>
$PubDirUrl=, or $EnablePathInfo=, that may be in config.php.<br>
<br>
Then you access your local wiki via <a href="http://localhost/pmwiki.php" target="_blank">http://localhost/pmwiki.php</a> .<br>
<br>
Thanks,<br>
<font color="#888888">Petko<br>
<br>
</font></blockquote></div>Thanks Petko. I will try that tonight.