dismiss Step into the future! Click here to switch to the beta php.net site
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

CURLFile::__construct> <curl_version
[edit] Last updated: Fri, 28 Jun 2013

view this page in

The CURLFile class

(PHP 5 >= 5.5.0)

Introduction

CURLFile can be used to upload a file with CURLOPT_POSTFIELDS.

Class synopsis

CURLFile {
/* Properties */
public $name ;
public $mime ;
public $postname ;
/* Methods */
public __construct ( string $filename [, string $mimetype [, string $postname ]] )
public string getFilename ( void )
public string getMimeType ( void )
public string getPostFilename ( void )
public void setMimeType ( string $mime )
public void setPostFilename ( string $postname )
public void __wakeup ( void )
}

Properties

name

mime

postname

Table of Contents



add a note add a note User Contributed Notes CURLFile - [1 notes]
up
1
Anonymous
4 days ago
how is this supposed to be used?

 
show source | credits | stats | sitemap | contact | advertising | mirror sites