php - curl is not working on my production server -


$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 form , when user enter values name . phone , mail . after using post request took mobile no , name post use in $url when on localhost server send me message when put on production server shows no error , not send me message

note :the above link dummy link

try activate curl functions in production server curl functions desactivated in servers


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -