Re: ``file'' UNIX command in PEAR

From: Date: Sat, 17 Aug 2002 10:38:36 +0000
Subject: Re: ``file'' UNIX command in PEAR
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2145@lists.php.net to get a copy of this message
In <3D513234.53D0EE83@idecnet.com>, Tomas V.V.Cox wrote: > 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. In php 4.3, there will be ext/mime_magic, which does exactly the same thing as "file" :) chregu

« previous php.pear.general (#2145) next »