note 97786 deleted from function.httprequest-setpostfiles by danbrown
| From: | danbrown@php.net | Date: | Sat, 08 May 2010 18:03:58 +0000 |
| Subject: | note 97786 deleted from function.httprequest-setpostfiles by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169076@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
$post_files should be an array of arrays representing each file to post:
$req = new HttpRequest('http://localhost/',
HttpRequest::METH_POST);
$req->setPostFiles(array(array('name' => 'file',
'type' => 'application/x-octetstream',
'file' => '/tmp/posttest.php')));
print_r($req->getPostFiles());