"socket" should be added to the list of possible values that can be returned by filetype(). I have tested it with versions 4.3.0 and 5.0.2 of PHP.
![]() | filetype说明string filetype ( string filename )返回文件的类型。可能的值有 fifo,char,dir,block,link,file 和 unknown。 如果出错则返回 FALSE。如果 stat 调用失败或者文件类型未知的话 filetype() 还会产生一个 E_NOTICE 消息。
参见 is_dir(),is_file(),is_link(),file_exists(),stat() 和 mime_content_type()。 ![]()
Guillaume Cocatre-Zilgien
01-Nov-2004 09:42
"socket" should be added to the list of possible values that can be returned by filetype(). I have tested it with versions 4.3.0 and 5.0.2 of PHP.
ruach at chpc dot utah dot edu
11-Mar-2004 09:11
There are 7 values that can be returned. Here is a list of them and what each one means | ![]() | |