Event::addTimer

(PECL event >= 1.2.6-beta) Makes timer event pending public bool Event::addTimer ([ double $timeout ] ) Event::addTimer() is an alias of Event::add() Returns: Examples: Event::addTimer() example <?php $base = new EventBase(); $n = 2; $e = Event::timer($base, function($n) use (&$e) {     echo "$n seconds elapsed\n

Event::addSignal

(PECL event >= 1.2.6-beta) Makes signal event pending public bool Event::addSignal ([ double $timeout ] ) Event::addSignal() is an alias of Event::add() Examples: Event::addSignal() example <?php /* Launch it in a terminal window: $ php examples/signal.php In another terminal window find out the pid and send SIGTERM, e.g.: $ ps a

Event::add

(PECL libevent >= 0.0.1) Makes event pending public bool Event::add ([ double $timeout ] ) Marks event pending. Non-pending event will never occur, and the event callback will never be called. In conjuction with Event::del() an event could be re-scheduled by user at any time. If Event::add() is called on an already pending event, libevent will leave it pending and re-schedule it with the given timeout(if specified). If

CURLFile::__wakeup

(PHP 5 >= 5.5.0, PHP 7) Unserialization handler public void CURLFile::__wakeup ( void ) Returns: No value is returned. Exception: CURLFile is not serializable.

CURLFile::setPostFilename

(PHP 5 >= 5.5.0, PHP 7) Set file name for POST public void CURLFile::setPostFilename ( string $postname ) Parameters: postname Filename to be used in POST data. Returns: No value is returned.

CURLFile::setMimeType

(PHP 5 >= 5.5.0, PHP 7) Set MIME type public void CURLFile::setMimeType ( string $mime ) Parameters: mime MIME type to be used in POST data. Returns: No value is returned.

CURLFile::getPostFilename

(PHP 5 >= 5.5.0, PHP 7) Get file name for POST public string CURLFile::getPostFilename ( void ) Returns: Returns file name for POST.

CURLFile::getMimeType

(PHP 5 >= 5.5.0, PHP 7) Get MIME type public string CURLFile::getMimeType ( void ) Returns: Returns MIME type.

CURLFile::getFilename

(PHP 5 >= 5.5.0, PHP 7) Get file name public string CURLFile::getFilename ( void ) Returns: Returns file name.

CURLFile::__construct

(PHP 5 >= 5.5.0, PHP 7) Create a CURLFile object public CURLFile::__construct ( string $filename [, string $mimetype [, string $postname ]] ) Object oriented style Procedural style CURLFile curl_file_create ( string $filename [, string $mimetype [, string $postname ]] ) Creates a CURLFile object, used to upload a file with CURLOPT_POSTFIELDS. Parameters: filename Path