sabams Posted November 7, 2012 Share Posted November 7, 2012 I USE THE CODE TO SEND SMS, WHICH WORKS FINE ON MY LOCALHOST BUT AFTER DEPLOYING THE SITE, IT STOPPED WORKING. PLEASE KINDLY HELP $vars="username=".$username."&password=".$password."&type=0&dlr=1&source=".$_POST['from']. "&message=".$_POST['message']."&destination=".$recipient; $curl=curl_init('http://smsplus3.routesms.com:8080/bulksms/bulksms'); curl_setopt($curl, CURLOPT_POST, TRUE); curl_setopt($curl, CURLOPT_POSTFIELDS, $vars); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); $result=curl_exec($curl); curl_close($curl); Quote Link to comment https://forums.phpfreaks.com/topic/270403-issues-with-code-for-sending-sms/ Share on other sites More sharing options...
winningdave Posted November 7, 2012 Share Posted November 7, 2012 Do you have the CURL extension enabled on your production server? use phpinfo() to find out Quote Link to comment https://forums.phpfreaks.com/topic/270403-issues-with-code-for-sending-sms/#findComment-1390791 Share on other sites More sharing options...
sabams Posted November 7, 2012 Author Share Posted November 7, 2012 curl is working on the production sever they told me is they they dont support port 8080 on their server, so i had to remove it from the link. Its now working. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/270403-issues-with-code-for-sending-sms/#findComment-1390813 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.