ArininAV

HTTP_Download::guessContentType()

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

Synopsis

mixed HTTP_Download::guessContentType ()

Описание

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.

Возвращаемое значение

Возвращает TRUE при удаче и PEAR_Error в обратном случае.

Заметка

Эта функция не должна вызываться статически.