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 -> [url]www.gremlins.biz[/url]
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
Search the list archives before you post
Beauty, n.:
The power by which a woman charms a lover and terrifies a husband.
-- Ambrose Bierce