Re: filtype() Problems
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: filtype() Problems

From: Jeff Johns <phpfunk@gmail.com>
Date: Fri Dec 30 2005 - 05:29:35 CET

Are you not getting anything in return for the files that do not
produce a type?

>>From the manual:
"Returns FALSE if an error occurs. filetype() will also produce an
E_NOTICE message if the stat call fails or if the file type is
unknown."

Set your error reporting for the script to report all errors to try an
pinpoint what is happening. It is hard to tell not seeing the rest of
the script and your filesystem.
Received on Tue Jan 3 03:49:56 2006