previousHTTP_Download::send (Previous) (Next) HTTP_Download::sendArchivenext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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

  • array $params - An associative array of parameters:

    • one of:

      • $params['file'] - filepath

      • $params['data'] - raw data

      • $params['resource'] - resource handle

    • and any of:

      • $params['gzip'] - whether to gzip the download

      • $params['cache'] - whether to allow client side caching of the download

      • $params['lastmodified'] - unix timestamp of last modification

      • $params['contenttype'] - content type

      • $params['contentdisposition'] - content disposition

      • $params['buffersize'] - amount of bytes read at once from files or resources

      • $params['throttledelay'] - amount of seconds to sleep after each chunk that has been sent

  • bool $guess = false - whether to call guessContentType()

Return value

Returns TRUE on success, PEAR_Error on failure.

Note

This function should be called statically.

previousHTTP_Download::send (Previous) (Next) HTTP_Download::sendArchivenext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.