systech44 Posted April 1, 2010 Share Posted April 1, 2010 I am trying the following code to send SMS. <?php $gatewayURL = 'http://localhost:9333/ozeki?'; $request = 'login=admin'; $request .= '&password=abc123'; $request .= '&action=sendMessage'; $request .= '&messageType=SMS:TEXT'; $request .= '&recepient='.urlencode('+9898989898'); $request .= '&messageData='.urlencode("Hello World"); $url = $gatewayURL . $request; //Open the URL to send the message file($url); ?> But I am getting the following error message. Warning: file(http://localhost:9333/ozeki?login=ad...ta=Hello+World) [function.file]: failed to open stream: Connection refused in /home/vpe/public_html/_demo2/sms/sms2.php on line 13 Please help to rectify my code. Thanks a lot in advance. Quote Link to comment https://forums.phpfreaks.com/topic/197230-send-sms/ Share on other sites More sharing options...
JonnoTheDev Posted April 1, 2010 Share Posted April 1, 2010 Code looks fine. Whatever is on port 9333 is simply refusing the GET request. Quote Link to comment https://forums.phpfreaks.com/topic/197230-send-sms/#findComment-1035244 Share on other sites More sharing options...
systech44 Posted December 21, 2010 Author Share Posted December 21, 2010 Can anybody please show me some free gateway to send SMS. How do I write code to send SMS in PHP ? Please help. Quote Link to comment https://forums.phpfreaks.com/topic/197230-send-sms/#findComment-1149812 Share on other sites More sharing options...
jake2891 Posted December 21, 2010 Share Posted December 21, 2010 http://www.sephiroth.it/tutorials/flashPHP/sms/ Quote Link to comment https://forums.phpfreaks.com/topic/197230-send-sms/#findComment-1149853 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.