Re: is there a way to get the content type with php
| From: | David Otton | Date: | Fri, 01 Feb 2002 11:55:08 +0000 |
| Subject: | Re: is there a way to get the content type with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-83109@lists.php.net to get a copy of this message | ||
On Fri, 1 Feb 2002 12:37:24 +0100, you wrote:
>Hi all
>
>i have a skript that sends out various files after versifying tat the
>user is authenticated.
>can i determine the content type of a file with php? like using it on
>pdf and it return
>applicatin/pdf etc?
That information is in $APACHE/conf/mime.types
I'm not certain how you'd get it out though. Parse the file? You'd
miss any that had been added with Apache's AddType directive.
djo