FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chijete/CrafyAsyncHttp: Simple unidirectional Asynchronous CURL PHP library · GitHub

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CrafyAsyncHttp

Simple unidirectional Asynchronous CURL PHP library

This library works on Windows and Linux (Unix).

It is unidirectional: the HTTP request is sent asynchronously, without waiting for the response from the destination server.

Requirements

  • CURL Library.
  • Access to exec() and popen() functions.

Files

  • class.php contains the class.
  • index.php contains an example.

Principal class (CrafyAsyncHttp) methods

__construct

Parameters:

  • $temp_files_path Absolute path to folder for temporal files (example "/usr/local/crafy_temp_files/")

makeAsyncCurl

Parameters:

  • $url Equivalent to curl_setopt($ch, CURLOPT_URL, {this}) (HTTP request target URL).
  • $custom_options Equivalent to curl_setopt($ch, {$custom_options->key}, {$custom_options->value}) (CURL Options as associative array).
  • $time_limit Temporal PHP file execution time limit (Default 0: unlimited).

Back | FazBrowse Home | New Git URL