HTTP_Download::guessContentType()

HTTP_Download::guessContentType() -- Guess content type of file

Synopsis

mixed HTTP_Download::guessContentType ()

Description

Use only if you send a file.

This only works if PHP is installed with ext/magic.mime AND php.ini is setup correct!

Otherwise it will result in a FATAL ERROR.

So be WARNED!

Returns PEAR_Error if ext/magic.mime is not installed, or content type couldn't be guessed.

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function can not be called statically.