Thread: SMS with PHP

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    1
    Rep Power
    0

    SMS with PHP


    Hello,
    I wonder if it is possible to send SMS with PHP. If so, then how?
    Thank you.

    Max
  2. #2
  3. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,047
    Rep Power
    487
    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.
    "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
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0
    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).

    That's how to do it in a nutshell.
    Thank you for sharing it.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    3
    Rep 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.
  8. #5
  9. No Profile Picture
    I haz teh codez!
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Dec 2003
    Posts
    2,540
    Rep Power
    2337
    Gee, why do I smell a tag team astro-turf here?
    I ♥ ManiacDan & requinix

    This is a sig, and not necessarily a comment on the OP:
    Please don't be a help vampire!
  10. #6
  11. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,301
    Rep Power
    7170
    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.

    Comments on this post

    • ptr2void agrees : Often see this for the product that was being spammed.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo