Discuss SMS with PHP in the PHP Development forum on Dev Shed. SMS with PHP PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Posts: 760
Time spent in forums: 1 Week 4 Days 5 h 15 m 18 sec
Reputation Power: 339
1. Pay for an SMS gateway (this will provide an API so you send it HTTP POST data and it turns it into an SMS and sends it) or build your own, I suspect at least you'll need a SIM card attached to the server, maybe plug in a mobile phone via USB and tell it to act as a modem
2. Create a form to get the message content
3. PHP processes the submitted form data and sends the data to the gateway which in turn, sends the SMS and provides you with a returncode (which you can parse with PHP and display the result to the user).
That's how to do it in a nutshell.
__________________
The number for UK Emergencies is changing, the new number is 0118 999 881 999 119 7253
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984
Posts: 12
Time spent in forums: 4 h 11 m 21 sec
Reputation Power: 0
Quote:
Originally Posted by badger_fruit
1. Pay for an SMS gateway (this will provide an API so you send it HTTP POST data and it turns it into an SMS and sends it) or build your own, I suspect at least you'll need a SIM card attached to the server, maybe plug in a mobile phone via USB and tell it to act as a modem
2. Create a form to get the message content
3. PHP processes the submitted form data and sends the data to the gateway which in turn, sends the SMS and provides you with a returncode (which you can parse with PHP and display the result to the user).
Posts: 3
Time spent in forums: 27 m
Reputation Power: 0
My developers did the same for my website as badger_fruit wrote, I just think you should seriously consider which gateway to choose. We tried several ones before we found don't advertise on these forums please, which runs great since then.
Last edited by E-Oreo : October 10th, 2012 at 08:40 PM.
Posts: 7,931
Time spent in forums: 2 Months 7 h 48 m 54 sec
Reputation Power: 7053
According to the new rule which I just made up, users with only one post who registered in the past 24 hours are not allowed to reply to other users with only one post who also registered in the past 24 hours if they are recommending specific products. This is doubly true if the two posters are posting from the same IP address.