Re: knowing file's mime-type
| From: | Cynic | Date: | Wed, 10 Jan 2001 19:03:14 +0000 |
| Subject: | Re: knowing file's mime-type | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33737@lists.php.net to get a copy of this message | ||
err, how about apache_lookup_uri()?
http://docs.wad.cz/php/function.apache-lookup-uri.html
At 20:01 10.1. 2001, Nikolai Vladychevski , Chris Lee <lee@mediawaveonline.com> wrote the
following:
--------------------------------------------------------------
>besides, a file type can be defined in httpd.conf, not in
>mime.types
>
>At 19:48 10.1. 2001, Nikolai Vladychevski wrote the following:
>--------------------------------------------------------------
>>Chris Lee wrote:
>>>
>>> use exec() and unix's command 'file'
>>>
>>> exec("file $filename");
>>>
>>> and admire the output :)
>>
>>I know, but "file" does not gives it based on /etc/mime.types, it even
>>has nothing to do with apache.....
>>
>>
>>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
>------end of quote------
>
>
>____________________________________________________________
>Cynic:
>
>A member of a group of ancient Greek philosophers who taught
>that virtue constitutes happiness and that self control is
>the essential part of virtue.
>
>cynic@mail.cz
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz