function path($file) { $OS = strtolower(substr(PHP_OS, 0, 3)); $OS == 'win' ? $PD = '\\' : $PD = '/'; return dirname($file).$PD; } require_once path(__FILE__).'DirectoryListing.class.php'; new DirectoryListing(getcwd(), 4); ?>