Skip to content

Instantly share code, notes, and snippets.

@nidhhoggr
Created April 11, 2013 22:52
Show Gist options
  • Save nidhhoggr/5367850 to your computer and use it in GitHub Desktop.
Save nidhhoggr/5367850 to your computer and use it in GitHub Desktop.
function sendXmlFile($outfile) {
$ch = curl_init();
$url = "http://dev.usa911.us/synch/scripts/write.php";
$data = array('file' => $outfile);
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_POST, true);
curl_setopt($handle, CURLOPT_POSTFIELDS, $data);
curl_exec($handle);
// close CURL resource, and free up system resources
curl_close($handle);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment