[wp-hackers] Re: Bad assumption on creation of ABSPATH

DD32 wordpress at dd32.id.au
Fri Nov 14 22:30:11 GMT 2008

On Sat, 15 Nov 2008 00:55:04 +1100, mpwalsh8 <mike_walsh at mindspring.com>  

> I ran into one situation where Windows wasn't dealing with them
> correctly but I don't recall the exact details and I had to do all
> sorts of goofy manipulation to map and escapes the slashes properly.
> Regardless, PHP defines a constant (DIRECTORY_SEPARATORY) which is OS
> specific.  If this was used instead of hard-coding '/', wouldn't it
> address the original problem?

It would address the original complaint, It wouldnt technically solve  
Windows paths can be c:\blah\ or /blah/blah/ Windows doesnt care, The only  
time that you have problems is when you are parsing ABSPATH and expect it  
to be holding a Unix path, Which just isnt the case on windows.

More information about the wp-hackers mailing list