note 27800 added to function.filetype

From: Date: Thu, 19 Dec 2002 07:28:04 +0000
Subject: note 27800 added to function.filetype
Groups: php.notes 
Request: Send a blank email to php-notes+get-41092@lists.php.net to get a copy of this message
in Win32 system,we can use the filetype() to judge a directory or file, if (filetype("images")=='dir') { ...... } equal to--> if (is_dir("images")) { ...... } This may fit for win32 and unix. but the below only fit for win32 system if (filetype("images")=='file') { ...... } equal to--> if (is_file("images")) { ...... } -- http://www.php.net/manual/en/function.filetype.php http://master.php.net/manage/user-notes.php?action=edit+27800 http://master.php.net/manage/user-notes.php?action=delete+27800 http://master.php.net/manage/user-notes.php?action=reject+27800

« previous php.notes (#41092) next »