Re: note 27800 added to function.filetype

From: Date: Thu, 19 Dec 2002 09:06:40 +0000
Subject: Re: note 27800 added to function.filetype
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41098@lists.php.net to get a copy of this message
This is patently false, filetype($filename) will also return 'file' on Unix for any regular file. --- digitalife@163.com wrote: > 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 > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com

« previous php.notes (#41098) next »