Is using the directory separator constant necessary?
As far as PHP is concerned, you might not need it when constructing a path, but it is important for anything you get from the OS. From http://alanhogan.com/tips/php/directory-separator-not-necessary: In attempting to write cross-platform, portable PHP code, I used PHP’s DIRECTORY_SEPARATOR constant to write path strings, e.g. “..”.DIRECTORY_SEPARATOR.”foo”, because the “proper” way to do it on …