Created
April 11, 2013 22:52
-
-
Save nidhhoggr/5367850 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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