Friday, January 29, 2010

DIRECTORY_SEPARATOR in php

DIRECTORY_SEPARATOR = strtoupper(substr(PHP_OS,0,3)=='WIN')?'\\':'/';

No comments: