HttpRequest::setPostFiles

(PECL pecl_http >= 0.10.0)

HttpRequest::setPostFilesSet post files

說明

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.

參數

post_files

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

回傳值

如果成功則回傳 TRUE,失敗則回傳 FALSE

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top