Wednesday, 21 December 2011

Send sms with Php without opening Page


php - Run a url to send sms in the background

<?php

$url="http://domain_Name.com/pushsms.php?username=XXXXXX&api_password=XXXXXXX&sender=dataman&to=9451293997&message=Verified%20Sucessfully&priority=1=1";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$result = curl_exec($ch);
$info = curl_getinfo($ch); //Some information on the fetch
//print_r($result);
curl_close($ch);
?>

No comments:

Post a Comment