HTTP_Download::setData (Previous) (Next) HTTP_Download::setGzip

View this page in Last updated: Mon, 02 Jul 2007
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

HTTP_Download::setResource()

HTTP_Download::setResource() -- Set resource for download

Opis

Set the resource handle to retrieve the data for the download.

The resource handle supplied will be closed after sending the download.

Set $handle to null if you want to unset.

Notatka: This cannot be used with resources of databases that populate their BLOBs as resource handles like PostgreSQL. A possible solution would be to write a stream wrapper.

Returns a PEAR_Error if $handle is no valid resource or not null.

Parametr

  • mixed [$handle = null] - (int) resource handle or null

Zwracana wartość

Zwraca TRUE w przypadku powodzenia, PEAR_Error w przypadku niepowodzenia.

Uwagi

Ta funkcja nie może być wywołana statycznie.

HTTP_Download::setData (Previous) (Next) HTTP_Download::setGzip

Download Documentation Last updated: Mon, 02 Jul 2007
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.