note 13341 deleted from function.file.php by jimw

From: Date: Mon, 23 Jul 2001 20:30:10 +0000
Subject: note 13341 deleted from function.file.php by jimw
Groups: php.notes 
Request: Send a blank email to php-notes+get-15724@lists.php.net to get a copy of this message
Is there any PHP function similar to the unix file command? It would be very useful to me to have a function that detects file format based on magic numbers... I'd rather have a native PHP function than just using $type = system("file $filename"); which is what I will probably end up doing for my code...

« previous php.notes (#15724) next »