Re: knowing file's mime-type

From: Date: Wed, 10 Jan 2001 17:16:30 +0000
Subject: Re: knowing file's mime-type
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33708@lists.php.net to get a copy of this message
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" <niko@isl.net.mx> wrote in message news:3A5C988A.75A690FB@isl.net.mx... > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#33708) next »