没用过,只能顶一下,手册上只找到这个与你相亲的函数:filetype
(PHP 3, PHP 4, PHP 5)filetype -- 取得文件类型
说明
string filetype ( string filename )
返回文件的类型。可能的值有 fifo,char,dir,block,link,file 和 unknown。 
如果出错则返回 FALSE。如果 stat 调用失败或者文件类型未知的话 filetype() 还会产生一个 E_NOTICE 消息。
注: 本函数的结果会被缓存。更多信息参见 clearstatcache()。
提示: 自 PHP 5.0.0 起本函数也可被某些 URL wrapper 使用。参考附录 L 来看哪些 wrapper 支持 stat() 系列函数的功能。/****************另外你可试试********************/
filepro_fieldtype
(PHP 3, PHP 4, PHP 5)filepro_fieldtype -- Gets the type of a field
Description
string filepro_fieldtype ( int field_number )
Returns the edit type of the field corresponding to field_number.