2-way Woes via php and curl

2-way Woes via php and curl SearchSearch
Author Message
New member
Username: Syirrus

Post Number: 1
Registered: 04-2006
Posted on Saturday, April 08, 2006 - 06:29 pm:   

Okay, I have my sms modem up and the now sms gateway running just dandy. I came from smsinabox software package so I'm a bit used to having incoming messages directed to a php script that I made. Here where my problems begin. The php script I made simply parses an incoming sms msg (sender and msg) accesses a database and returns it back to the user via curl like so: curl http://ip:port/sms.php?sendto=1231234567&msg=blah. Now sms gateway should just send the text msg based on how it is formatted in the url, but it doesn't. I have combed through the forums and I get bits an pieces of how to do this, but for some reason it is not sticking.I just want the php script to parse the information and then curl it back to the now.sms gateway.


I have tested my php scripts which work perfectly. if I manually submit them to a url via IE or opera.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5822
Registered: 10-2002
Posted on Thursday, April 20, 2006 - 07:54 pm:   

I'm sorry, but I don't understand your question ...

Could you clarify what you're confused about? I don't follow exactly what you're trying to do (because I could interpret it several different ways).

Are you confused about receiving a message to a 2-way command, or submitting a message?