![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: How to tell if Mime type matches contents
From: Andy Hassall <andy@andyh.co.uk>
Date: Fri Dec 30 2005 - 23:49:10 CET
On 27 Dec 2005 07:27:06 -0800, "ed_spain" <ed.eichman@gmail.com> wrote:
>Before I write the script myself, I'm looking for PHP code that checks
There's MIME-type detection using "magic numbers" available through:
This does a quick check against the first few bytes of the file to see if it
It won't catch the second one, because that's still a valid HTML page - it may
-- Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis toolReceived on Tue Jan 3 03:50:42 2006 |