note 86802 rejected from ref.fileinfo by danbrown

From: Date: Tue, 04 Nov 2008 15:50:25 +0000
Subject: note 86802 rejected from ref.fileinfo by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-146122@lists.php.net to get a copy of this message
Note Submitter: jeff at newtnotes dot com ---- To those who suggest using the Unix/Linux "file" command, please understand that this is NOT a portable solution. "file" unfortunately has several variants, and if you are going to do something CRAZY like run your PHP app server on Solaris, this won't work. As a general rule, it is never a good idea to rely on system file execution. * Not portable * Can open a security hole * Slow etc. However, after reading these comments, it looks like there is no good, universal, non-deprecated solution for this problem. WTF? It does seem like something that should come bundled with PHP as a core component, including a Mime types/magic file equivalent that is not system dependent.

« previous php.notes (#146122) next »