On Sunday 13 July 2003 01:24, Dan Anderson wrote:
> Is it possible to check a file in $_FILES['userfile']['tmp_name'] to
> make sure it is of a certain format?  I want to allow a user to only
> upload jpegs or mpegs, and want to check what format the file is in.

If on un*x you can use the 'file' program. Also search on freshmeat.net, I 
believe there is a php-based program which gives info on the common media 
type files.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Beauty, n.:
        The power by which a woman charms a lover and terrifies a husband.
                -- Ambrose Bierce
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to