cURL
PHP Manual

The CURLFile class

(PHP 5 >= 5.5.0)

Introducere

CURLFile can be used to upload a file with CURLOPT_POSTFIELDS.

Sinopsisul clasei

CURLFile {
/* Proprietăți */
public $name ;
public $mime ;
public $postname ;
/* Metode */
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 )
}

Proprietăți

name

mime

postname

Cuprins


cURL
PHP Manual