HTTP_Download::staticSend()

HTTP_Download::staticSend() --  Static send

Synopsis

mixed HTTP_Download::staticSend (array $params, bool [$guess = false])

Description

Send a download statically without instantiating an HTTP_Download object.

Parameter

"Content-Disposition" is not HTTP compliant, but most browsers follow this header, so it was borrowed from MIME standard.

It looks like this: "Content-Disposition: attachment; filename=example.tgz".

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function should be called statically.