Is there a reason people use stripslashes on on things like this: dirname(stripslashes($_SERVER["PATH_TRANSLATED"]));
I suppose dirname MIGHT return a backslash in a folder name with a space. You'll have to check that. That's the only scenario that I can fathom though.
On a Windows box if you've got magic quotes on then paths are like this:
_SERVER["ORIG_PATH_TRANSLATED"] E:\MyPhp\php\Useful bits\localinfoplus.php
I'll stick with Linux, thanks.
Yup, Linux if you can. I was just using that to illustrate that if magic quotes are on then slashes are added even to the $SERVER array, and $COOKIE array, and the... $_G... etc
Thanks Drakla and bretticus!