looking for a php based sms script

Discussion in 'PHP' started by 1EightT, Jul 29, 2007.

  1. #1
    We need a script to send and receive sms messages written in php. We're actually experienced developers, so if someone just has example code, or some resources we can check out. It's something we would likely rewrite anyway, but need to add the functionality to an upcoming project.
     
    1EightT, Jul 29, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Jul 29, 2007 IP
    1EightT likes this.
  3. fambi

    fambi Peon

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Why does receiving have to be complex? If you are receiving SMS through a gateway/aggregator, receiving SMS can be as simple as parsing a GET request.

    For example (see here):
    
    username=abcdefg&ac_password=secret&ac_routine=mo_forwarder&id=MO0000579439&from=447956218236&to=447768254545&date=200503041251&msg=Hello+world.This+is+a+test+message.&country=United+Kingdom
    
    Code (markup):
     
    fambi, Jul 30, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Yeah good one, I didn't think about that. :)
     
    nico_swd, Jul 30, 2007 IP
  5. 1EightT

    1EightT Guest

    Messages:
    2,646
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    0
    #5
    How do these gateways work? Is it possible to skip using one and send the messages directly? If I use a gateway are there any reliable free ones? We may have tens of thousands of messages going out per day here in the next few months.
     
    1EightT, Jul 30, 2007 IP
  6. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #6
    Free ones? No... I don't think there are even any unreliable free ones. TM4B isn't that expensive though, if you ask me.

    And the gateway is a simple HTTP request to their server. (Which is what my class does, except for the receiving)
     
    nico_swd, Jul 30, 2007 IP
  7. 1EightT

    1EightT Guest

    Messages:
    2,646
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yeah, but adding up the costs for a few thousand to a few hundred thousand messages a day will add up when it is simply a feature for members and not something critical to our system. I may still check it out though. Thanks for the help thus far.
     
    1EightT, Jul 30, 2007 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #8
    Well I highly doubt there's a free service. But you could try to set up your own SMS gateway. (I never used it, not sure how exactly it works)

    http://www.kannel.org/
     
    nico_swd, Jul 30, 2007 IP
  9. fambi

    fambi Peon

    Messages:
    49
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    If it is a feature for your members, you could always make it a value-added optional feature which comes with a cost. If you charge the same cost as that which you are being charged (to reduce the barrier which cost brings), your use of sms could also become an additional source of revenue when your volumes allow you qualify for discounts.
     
    fambi, Jul 30, 2007 IP
  10. 1EightT

    1EightT Guest

    Messages:
    2,646
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    0
    #10
    That's actually perfect. We have a cluster of servers right now, so adding one more or even a few more to handle the gateway traffic is fine with me. Thanks, i'll check the system out.
     
    1EightT, Jul 30, 2007 IP
  11. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #11
    I would look into the sending out MMS messages instead of SMS. The users can send the text message back (pictures, sounds, videos) to a email address. You can use a php based script to check a pop3 email address that you setup and gave to that user. .
     
    exodus, Jul 30, 2007 IP
    1EightT likes this.
  12. 1EightT

    1EightT Guest

    Messages:
    2,646
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    0
    #12
    thank you, that sounds very promising.
     
    1EightT, Jul 30, 2007 IP
  13. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #13
    The only bad thing is that with MMS you have to learn how to form the MMS messages you sent to the phones and have the FROM portion of the MMS message as the emai you assigned to the user.
     
    exodus, Jul 30, 2007 IP
  14. 1EightT

    1EightT Guest

    Messages:
    2,646
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    0
    #14
    That shouldn't be a problem. My in house developer is a pretty amazing programmer. I'll shoot this his way so we can dissect it. Thanks again for the info. This definitely helps.
     
    1EightT, Jul 31, 2007 IP
  15. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #15
    priyakochin, Jul 31, 2007 IP
  16. timelf123

    timelf123 Peon

    Messages:
    897
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #16
    definitely look into mms. i have a list of providers that tells you what the domain etc is for each


    e.g.
    us cellular


    pm me if you want it ;)
     
    timelf123, Jul 31, 2007 IP
  17. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #17
    Yes, you need an account on www.tm4b.com
     
    nico_swd, Aug 1, 2007 IP
  18. alex4sale

    alex4sale Banned

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    tm4b charges ??
     
    alex4sale, Aug 1, 2007 IP
  19. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #19
    nico_swd, Aug 1, 2007 IP
  20. priyakochin

    priyakochin Banned

    Messages:
    4,740
    Likes Received:
    138
    Best Answers:
    0
    Trophy Points:
    0
    #20
    priyakochin, Aug 1, 2007 IP