I need to determine if I'm on Windows or a *nix because I have a script which splits() paths on directory delimiters...
Code: Select all
$arr1 = split('/', strtolower($path1));On Windows can you not use both / or \ slash to delimit directories?
The code above only works on my production server *nix, but when I tried it on my desktop obviously it crapped all over me
What is a good, cross platform way of spliting a path into individual directory units?
Cheers