You don't really need to use DIRECTORY_SEPARATOR here. PHP 5.3+ works fine with ``/``