Re: ``file'' UNIX command in PEAR
| From: | Tomas V.V.Cox | Date: | Wed, 07 Aug 2002 14:44:04 +0000 |
| Subject: | Re: ``file'' UNIX command in PEAR | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2070@lists.php.net to get a copy of this message | ||
Ondrej Jombik wrote:
>
> Maxim, 00:33:43
> 04. august 2002 (nedela)
> Greetings!
>
> I want to ask you, if there is something like UNIX ``file'' command
> in PEAR. I'm developing file management web interface and I want to warn
> user, if file which he or she is going to edit is not regular text file.
>
> My fast glance at PEAR sources tells me, that there is nothing like
> that. I will be really glad, if it is not true. ;-)
>
That would be of course cool. I started one, but get no more time for it
:-/. I thought first on using the common /etc/magic file, but at the end
choosen the Gnome ones (gnome-vfs.key and gnome-vfs.mime part of the
gnome-vfs package) wich gives you a huge amount of info.
I'll be glad to help (at least in a moderated way) if someone code such
class.
Tomas V.V.Cox