HttpRequest
PHP Manual

HttpRequest::setPostFiles

(PECL pecl_http >= 0.10.0)

HttpRequest::setPostFilesSet post files

Descrizione

public bool HttpRequest::setPostFiles ( array $post_files )

Set files to post, overwriting previously set post files.

Affects only POST and requests. Cannot be used with raw post data.

Elenco dei parametri

post_files

an array containing the files to post; if empty, the post files will be unset

Valori restituiti

Restituisce TRUE in caso di successo, FALSE in caso di fallimento.


HttpRequest
PHP Manual