Miscellaneous
  Home arrow Miscellaneous arrow Sending SMS Thru HTTP
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
MISCELLANEOUS

Sending SMS Thru HTTP
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 45
    2005-05-11

    Table of Contents:
  • Sending SMS Thru HTTP
  • Understanding the Requirements of the Gateway
  • Prepare the Request
  • Sending the request with CURL
  • Sending the Request with Sockets
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Sending SMS Thru HTTP


    (Page 1 of 6 )

    Use PHP and the HTTP protocol to send text-messages from your website through an SMS gateway.

    By : Farheen Rehman

    SMS (also known as text-messaging) has grown into a very popular method of communication. It has been around in Europe and Asia since the early nineties and its use is steadily increasing in the US as well.

    SMS stands for "Short Message Service" and uses mobile phones to transmit (surprise, surprise) short messages to and from mobile phones and whilst many of us might not know this, it is also possible to send SMS messages from a website or a piece of software.

    There are an infinite number of reasons why you might want to use your website to send SMS. You might want to add a "send by SMS" option to your headlines, for example, or you might want to provide 24/7 support in which your technician is alerted by SMS or you might simply want to provide your viewers with Free SMS to drive traffic to your site.

    Although it is also possible to send SMS via e-mail, this tutorial will teach you how to send SMS using GET and POST HTTP methods in PHP (since it's the language I know).

    For those of us that many not know this, using HTTP basically means the use of forms, just like a contact form, except that these will be submitted automatically as opposed to manually.

    Although this tutorial can be used for any gateway that provides access via HTTP, it is based on TM4B's SMS Gateway because A) they are the only gateway I know that have a simulation mode for tweaking your scripts, B) they don't have any set-up fees, C) their prices are low, D) they are reliable and E) I use them.

    More Miscellaneous Articles
    More By Codewalkers


       · You can use the http_build_query() function instead of using the foreach loop by...
       · When sending request using sockets, you set the $method variable to...
       · With regards to http_build_query, sounds interesting! I'd like to give it a go when...
       · Thanks for the comment.Basically, you can replace "POST" with...
       · If I want to set up a system that is to send texts to individuals in different...
       · You'll find that all SMS Gateways require you to pass them the telephone numbers of...
       · To avoid encoded chunks, use HTTP 1.0.
       · Have you tried it? Does it work?
       · Chunked transfer-encoding was introduced in HTTP 1.1. The only mention of...
       · thank u for ur good work !!!
       · for Philippines, China, Japan, Hong Kong, Indonesia, Thailand, Singapore and...
       · salam! kişi iki gündür senin mailini...
       · salam! kişi iki gündür senin mailini...
       · Hy.... can anyone help me with this script. I can't help myself. Can anyone send me...
       · 
       · gjmbnmbbbnm
       · With the new api you need to change a few params..you need add...
       · sir first time try to this option isnot success but mail server option is vary...
       · I read through the tutorial, and I am a little confused on how the pieces of code...
       · here is another very simple worldwide SMS gateway....
       · Hi,I have found another solution at http://www.ozekisms.com, that is just us...
       · Thanks Friend For Your Code Of Sending Sms through server. i think its...
     

    MISCELLANEOUS ARTICLES

    - Shell Script Writing
    - Loops in the UNIX Shell
    - The Test in the UNIX Shell
    - Data Streams and the UNIX Shell
    - Control Mechanisms of the UNIX Shell
    - Variables Within the UNIX Shell
    - The Shell and UNIX
    - In Detail: UNIX File Systems
    - Rights Management in UNIX
    - UNIX File Systems
    - The Terminal in UNIX
    - Operating Systems and UNIX
    - Fedora 10 Released
    - Stopping CSRF Attacks in Your PHP Applicatio...
    - Quick and Dirty AJAX Tutorial





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
    Stay green...Green IT