$url="http://nis.com/smsapi.asp?mobnum=".$umobile."&uid=*****&pswd=*****&msg=HI%20".$firstname."%2C%20THANKS%20FOR%20REGISTERING";
$curl_handle = curl_init();
curl_setopt( $curl_handle, CURLOPT_CONNECTTIMEOUT, 10 );
curl_setopt( $curl_handle, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl_handle, CURLOPT_HEADER, 1 );
curl_setopt($curl_handle, CURLOPT_POST, true);
curl_setopt( $curl_handle, CURLOPT_VERBOSE, 1 );
curl_setopt( $curl_handle, CURLOPT_URL,$url );
$buffer = curl_exec( $curl_handle );
//print_r( curl_getinfo ( $curl_handle ) );
echo("sfsf = ".$buffer );
}
there was a form , when the user enter the values like NAME . PHONE AND MAIL . after that using post request I took the mobile no and name from the post use it in my $url When i on my localhost server it will send me the message but when i put it on my production server it shows no error and it will not send me the message
Note :the above link is a dummy link