<div class="gmail_quote"><span class="Apple-style-span" style="font-size: x-small;">On Sun, Mar 22, 2009 at 2:46 PM, Peter K.H. Gragert </span><span dir="ltr"><span class="Apple-style-span" style="font-size: x-small;"><<a href="mailto:p.k.h.gragert@misc.utwente.nl">p.k.h.gragert@misc.utwente.nl</a>></span></span><span class="Apple-style-span" style="font-size: x-small;"> wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span class="Apple-style-span" style="font-size: x-small;">Hi,<br>
My way of working is as follows:<br>
I installed XAMPP do be able to run PmWiki locally. No Vim editing needed!<br>
And you see at once the effect of local editing ;-).<br>
I use FileZilla to up- or download, and the newest version<br>
can show you with color-highlighting what the difference is ...<br>
So I can easily see, which files should be synchronized.</span><br></blockquote><div><br>Does Filezilla have an actual "syncronize" function? I havent been able to find it :-( </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
It means, my local and remote PmWiki(s) are identical.<br>
<br>
By the way, my config.php contains e.g.<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" target="_blank">http://localhost</a>***';<br>
<br>
} else {<br>
$ScriptUrl = 'http://***';<br>
$PubDirUrl = 'http://***';<br>
$PKHGjQuery = 'http://***';<br>
$PageLogoUrl = "http://***";<br>
}<br>
<br>
Where the *** naturally are to be replaced by YOUR URL's, so even your<br>
config.php maybe up or downloaded.<br></blockquote><div><br></div><div>Peter et al,</div><div><br></div><div>I followed your advise above with the XAMPP and a mirror setup of the wiki on my laptop. I got XAMPP working alright and I can even get to the homepage of the wiki. However, the page is unformatted and none of the links in the wiki work...</div>
<div><br></div><div>This is exactly what I have added to my local config file (my wiki folder is located at C:\xampp\htdocs\wiki, which is also the documentroot for apache):</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">if ($_SERVER['SERVER_ADDR'] == "127.0.0.1"){</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> $ScriptUrl = '<a href="http://localhost/">http://localhost/</a>';</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> $PubDirUrl = '<a href="http://localhost/pub">http://localhost/pub</a>';</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"># $EnablePathInfo=0;</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">}</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">else {</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">$ScriptUrl = '<a href="http://wiki.kumarsingh.com">http://wiki.kumarsingh.com</a>';</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">$PubDirUrl = '<a href="http://wiki.kumarsingh.com/pub">http://wiki.kumarsingh.com/pub</a>';</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">}</span></div>
<div><span class="Apple-style-span" style="font-size: 12px; "><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;"><br></span></span></div><div><span class="Apple-style-span" style="font-size: 12px; "><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif;">However, once loaded, all links resolve to literally:</span></span></div>
<div><span class="Apple-style-span" style="font-size: 12px;"><a href="http://localhost">http://localhost</a>***/Group/Page ! (including the three asterixes).</span></div><div><span class="Apple-style-span" style="font-size: 12px;">Looking at the source of this page, I could see the following:</span></div>
<div><span class="Apple-style-span" style="font-size: 12px;"><br></span></div><div><span class="Apple-style-span" style="font-size: 12px;"><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> <link rel='stylesheet' href='<a href="http://localhost">http://localhost</a>***/skins/cpmwiki/cpmwiki.css' type='text/css' /> </span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"> <script type="text/javascript" src="<a href="http://localhost">http://localhost</a>***/skins/cpmwiki/sorttable.js"></script></span></div>
<div><br></div><div>As you can see, it is again with the "***" after the "localhost". It makes no difference whether I type in Localhost or 127.0.0.1 in the URL bar. What am I doing wrong? How can I get the links to display correctly?</div>
<div><br></div><div>Thanks. </div><div>Sameer</div></span></div></div></div>