* Leons Petrazickis <leons.petrazickis(a)gmail.com> [Thu, 13 Aug 2009
10:35:51 -0400]:
On Thu, Aug 13, 2009 at 05:16, Dmitriy
Sintsov<questpc(a)rambler.ru>
wrote:
I wish MediaWiki had farm-friendly
LocalSettings.php (loading
different
> set of $wg* variables according to host name), which would not
require
symlinks (not
available in Windows).
Actually, symlinks are available in Windows as the NTFS junction
feature. Here's a great little GUI utility for creating them (I don't
have the Windows command line syntax memorized):
http://www.rekenwonder.com/linkmagic.htm
On XP and below, you'll want to avoid deleting the symlinks you create
directly in Windows Explorer, as this will delete the target folder as
well. Unlink before deletion. On Vista and up, this is handled
correctly -- only the symlink is deleted. I've never actually run into
this myself, but it's good to give the warning.
Regards,
Leons Petrazickis
http://lpetr.org/blog/
Thanks, but the symlinks still are the aliens to Windows - long time ago
I've seen these created by some (Sysinternals ?) tools, I remember they
were not visually highlighted and not provided with actual target in
cmd.exe and Explorer, in contrary to Linux bash. Anyway, I run my farm
without symlinks at all, by using modified version of LocalSettings.php
Speaking of $IP, if you'll get a value of dirname( __FILE__ ), then
split it to parts separated with '/' and check the dirs down for
existance of LocalSettings.php, you should reliably get $IP in such way
from any depth of inclusion, I think.
Dmitriy