note 40157 added to function.file-exists

From: Date: Mon, 23 Feb 2004 19:50:34 +0000
Subject: note 40157 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-65608@lists.php.net to get a copy of this message
A super helpful little snippet i use to determine the slash (DIRECTORY SEPERATOR) for an OS is: strstr(strtoupper(substr(PHP_OS, 0, 3)), "WIN") ? $slash = "\\" : $slash = "/"; example usage: opendir($basePath.$slash.$file) NOTE TO ADMINISTRATOR: This might be helpful in the listing for opendir() ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40157 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40157&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40157&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65608) next »