Re: [PHP] is there a way to get the content type with php

2002-02-01 Thread David Otton

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] is there a way to get the content type with php

2002-02-01 Thread Sebastian

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?
 
Sebastian