* Aryeh Gregor <[email protected]> [Tue, 10 Nov 2009 10:54:38 -0500]: > On Tue, Nov 10, 2009 at 7:57 AM, 李琴 <[email protected]> wrote: > > Do windows xp not using a backslash ?Apahe's conf is right. > > I don't get the context here, but do not use backslashes in paths. > All remotely recent versions of Windows (certainly Windows XP) will > accept a forward slash in path names as equivalent to a backslash. On > the other hand, backslashes not only don't work on Unix-likes, they > also require escaping in string literals for Windows. > Backslashes are twice bad, because sometimes larger pathes are produced by concatenation of shorted "subpathes", and when one shorter subpath uses slashes and another one backslashes, the concatenated path is invalid even in Windows. For example, some MediaWiki extension failed in Windows because it used slashes and dirname() or getcwd() returned backslashes. That's why my extension uses: str_replace( "\\", "/", dirname(__FILE__) ) Dmitriy
_______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
