Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
An insanely easy script for making asynchronous PHP calls
PHP
branch: master
Failed to load latest commit information.
README Quick fix
async.php Switched params encoding to use http_build_query so that arrays could…

README

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:
<?php
//Define the post variables that you want sent 
$post_vars = array('var1' => 'val1' , 'var2' => 'val2' , ... , 'varN' => 'valN');
curl_post_async('http://someurl.com/' , $post_vars);
?>
Something went wrong with that request. Please try again.