use exec() and unix's command 'file'

exec("file $filename");

and admire the output :)

http://www.php.net/manual/function.exec.php

Chris Lee
Mediawaveonline.com




"Nikolai Vladychevski" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
> I am doing my own file manager over the web and for that application I
> need to identify what mime-type has each file that user has on his own
> space. I know I can code some parser of /etc/mime.types and use its data
> to identify mime types by file extension, but first I would like to ask
> if these functions are already included in some libraries or anywhere
> else?
>
> Tanks in advance
>
> Nikolai
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to