Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chijete/CrafyAsyncHttp

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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).
Morty Proxy This is a proxified and sanitized view of the page, visit original site.