An insanely easy script for making asynchronous PHP calls
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This is a single function that will assist you with making "asynchronous" calls with PHP to any specified URL.

Keep in mind that this could fail at some point but I'm currently using this on a production server and it appears to be the most efficient way of making asynchronous calls based on everything I've looked at.  If you want to truly make asynchoronous calls you should probably use another language but since I've been using PHP forever it's much easier for me to toss this in when necessary :)

Example call:
//Define the post variables that you want sent 
$post_vars = array('var1' => 'val1' , 'var2' => 'val2' , ... , 'varN' => 'valN');
curl_post_async('' , $post_vars);