<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 10:19 AM, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></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>
> if ($_SERVER['SERVER_ADDR'] == "127.0.0.1"){<br>
> $ScriptUrl = '<a href="http://localhost/" target="_blank">http://localhost/</a>';<br>
> $PubDirUrl = '<a href="http://localhost/pub" target="_blank">http://localhost/pub</a>';<br>
> # $EnablePathInfo=0;<br>
> }<br>
> else {<br>
> $ScriptUrl = '<a href="http://wiki.kumarsingh.com" target="_blank">http://wiki.kumarsingh.com</a>';<br>
> $PubDirUrl = '<a href="http://wiki.kumarsingh.com/pub" target="_blank">http://wiki.kumarsingh.com/pub</a>';<br>
> }<br>
><br>
> However, once loaded, all links resolve to literally:<br>
> <a href="http://localhost" target="_blank">http://localhost</a>***/Group/Page ! (including the three asterixes).<br>
> Looking at the source of this page, I could see the following:<br>
><br>
> <link rel='stylesheet'<br>
> href='<a href="http://localhost" target="_blank">http://localhost</a>***/skins/cpmwiki/cpmwiki.css' type='text/css' /><br>
> <script type="text/javascript" src="<a href="http://localhost" target="_blank">http://localhost</a><br>
> ***/skins/cpmwiki/sorttable.js"></script><br>
<br>
</div>You could just leave PmWiki find its files and directories onyour local<br>
installation:<br>
<br>
if ($_SERVER['SERVER_ADDR'] != "127.0.0.1") # only NOT at home<br>
<div class="im">{<br>
$ScriptUrl = '<a href="http://wiki.kumarsingh.com" target="_blank">http://wiki.kumarsingh.com</a>';<br>
$PubDirUrl = '<a href="http://wiki.kumarsingh.com/pub" target="_blank">http://wiki.kumarsingh.com/pub</a>';<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.