Re: php and SMS
| From: | Chris Shiflett | Date: | Sun, 29 Aug 2004 00:29:26 +0000 |
| Subject: | Re: php and SMS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195042@lists.php.net to get a copy of this message | ||
--- grahama@siren.cc wrote:
> I want to send SMS Text messages to cell phones from my server app....
> I would also like cell phones to be able to send text messages back to
> my app how does one go about doing this?
This was done recently for Midnight Madness. The information given by the
developer is as follows:
"The SMS server was quite simple really. I borrowed a Sierra Wireless
Aircard 750 from a friend. This is basically a GSM/GPRS cellphone in
PCMCIA card package. The same type of setup can be done with any GSM
cellphone and a serial cable attaching it to a pc.
"I used a software called NowSMS which is free for 60 days. It has a lot
of features but I only used one, which is executing a program everytime an
sms message comes in with the message as a command line argument. It then
sends as a reply anything that the program writes to standard output.
"Then I wrote two pieces of software. One is the main game application
that keeps track of all the teams, the combination guesses, the hints,
etc. This program also has a sockets server running that waits for
incoming sms messages. The second piece of software is a little sockets
client that the NowSMS software executes when it gets a message. The
client program sends the message to the main application, writes the
response to standard out and exits. Everything is multi-threaded in case
the sms messages overlap, but I don't think this ever happens."
Hope that helps.
Chris
=====
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
http://httphandbook.org/
PHP Community Site
http://phpcommunity.org/