256 thoughts on “PHP class to send SMS using free SMS gateways

  1. pixel

    hi

    Actually code is working message also arrives sms sending successfully but not receiving

    please help

    Reply
  2. sms gateway

    So, shortcode can be viewed the most feasible method to
    get a small enterprise. You may be the owner of a
    Notebook, or perhaps an i – Pod, or possibly a music player or even an advanced Gaming
    console when you purchase a cellphone along with its special features
    and freebies. Technically designed bulk sms software broadcasts various personal or business sms with delayed
    delivery feature to attenuate or reduce the load of sms broadcasting.

    Reply
  3. chauhan

    i have an error while executing the code “Notice: Undefined offset: 1 in class.sms.php on line 73
    Call Stack
    # Time Memory Function Location
    1 0.0023 141448 {main}( ) ..\example.php:0
    2 0.0076 192208 sms->login( ) ..\example.php:16
    3 0.0076 192544 call_user_func ( ) ..\class.sms.php:45
    4 0.0076 192560 sms->login_way2sms( ) ..\class.sms.php:45
    Sending SMS …
    ( ! ) Notice: Undefined offset: 1 in class.sms.php on line 93
    Call Stack
    # Time Memory Function Location
    1 0.0023 141448 {main}( ) ..\example.php:0
    2 1.0200 192736 sms->send( ) ..\example.php:19
    3 1.0200 193072 call_user_func ( ) ..\class.sms.php:53
    4 1.0200 193088 sms->send_way2sms( ) ..\class.sms.php:53

    ( ! ) Notice: Undefined offset: 1 in class.sms.php on line 98
    Call Stack
    # Time Memory Function Location
    1 0.0023 141448 {main}( ) ..\example.php:0
    2 1.0200 192736 sms->send( ) ..\example.php:19
    3 1.0200 193072 call_user_func ( ) ..\class.sms.php:53
    4 1.0200 193088 sms->send_way2sms( ) ..\class.sms.php:53
    Error encountered :

    Reply
  4. Varadha

    hi, just before i found your code, it tried to use it from my localhost. but its not working showing an error like
    Logging in …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 65
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 93
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 98

    kindly help me to solve it, i enabled curl and set the chagnes before you commented above. and i was tried to find the bug, the above errored lines are having a same variable of $matches. so got confused to solve it. please help to solve it.

    Reply
  5. harish

    hi,
    i used this service in my web page by using 160by2 account, but it giving me error message like:
    PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\singlatimbers\SMS-API\class.sms.php on line 128
    PHP Notice: Undefined offset: 1 in C:\inetpub\wwwroot\singlatimbers\SMS-API\class.sms.php on line 149

    why this coming and Please help me to resolve this.
    Thanks…

    Reply
  6. akash

    hi, just before i found your code, it tried to use it from my localhost. but its not working showing an error like
    Logging in …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 65
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 93
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 98
    kindly help me to solve it, i enabled curl and set the chagnes before you commented above. and i was tried to find the bug, the above errored lines are having a same variable of $matches. so got confused to solve it. please help to solve it.

    Reply
  7. Jibin

    hi, just before i found your code, it tried to use it from my localhost. but its not working showing an error like
    Logging in …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 65
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 93
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 98
    kindly help me to solve it, i enabled curl and set the chagnes before you commented above. and i was tried to find the bug, the above errored lines are having a same variable of $matches. so got confused to solve it. please help to solve it.

    Reply
  8. Manivannan

    Thanks for the script .

    steps to do before using this script . enable curl in php enviornment .
    uploading it in domain (try using free cloud domain heroku, appfog,openshift) if you dont have one.

    this script doesnot work fro 160by2 because the url passing for 160by2 login and sending sms are updated in 160by2 server. any one need to work and update the script.

    but i am trying to do as beginner i dont know how to do. Atlast the script need to update to make it work
    thanks

    Reply
  9. akhila

    Logging in …
    Notice: Undefined offset: 1 in C:\wamp\www\sms\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\wamp\www\sms\class.sms.php on line 93

    Notice: Undefined offset: 1 in C:\wamp\www\sms\class.sms.php on line 98
    Error encountered :

    Reply
  10. Bhavesh

    ( ! ) Fatal error: Call to undefined function curl_init() in C:\wamp\www\bj\SMS-API2.0\class.curl.php on line 49

    Reply
  11. Elois Mogus

    Hello! Do you know if they make any plugins to assist with Search Engine Optimization?
    I’m trying to get my blog to rank for some targeted keywords but I’m not
    seeing very good results. If you know of any
    please share. Kudos!

    Reply
  12. lalitha

    Logging in …
    Notice: Undefined offset: 1 in D:\ATTRACT\SMS-API\class.sms.php on line 65

    Notice: Undefined offset: 1 in D:\ATTRACT\SMS-API\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in D:\ATTRACT\SMS-API\class.sms.php on line 94

    Notice: Undefined offset: 1 in D:\ATTRACT\SMS-API\class.sms.php on line 100
    Error encountered :

    kindly help me to solve it, i enabled curl and set the chagnes before you commented above. and i was tried to find the bug, the above errored lines are having a same variable of $matches. so got confused to solve it. please help to solve it.

    Reply
  13. Bhavesh

    Fatal error: Call to undefined function curl_init() in C:\wamp\www\test\SMS-API\class.curl.php on line 59

    Reply
  14. Ajay Kant Upadhyay


    Jibin:

    hi, just before i found your code, it tried to use it from my localhost. its not working and showing an error like
    Logging in …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 65
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 93
    Notice: Undefined offset: 1 in C:\xampp\htdocs\SMS\class.sms.php on line 98
    kindly help me to solve it, i enabled curl and set the chagnes before you commented above. and i was tried to find the bug, the above errored lines are having a same variable of $matches. so got confused to solve it. please help to solve it.

    Reply
  15. Rajesh sivan

    Hi Kiran,

    i have downloaded textoo app. when i go to update gateways. but it shows, “update error:server sent an invalid response”. please mail me the solution as soon as possible.

    Reply
  16. jitendra

    Notice: Undefined offset: 1 in C:\wamp\www\sms example\class.sms.php on line 7

    always appearing this error..

    what u solution this error…

    Reply
  17. jitendra


    chauhan:

    i have an error while executing the code “Notice: Undefined offset: 1 in class.sms.php on line 73 Call Stack # Time Memory Function Location 1 0.0023 141448 {main}( ) ..\example.php:0 2 0.0076 192208 sms->login( ) ..\example.php:16 3 0.0076 192544 call_user_func ( ) ..\class.sms.php:45 4 0.0076 192560 sms->login_way2sms( ) ..\class.sms.php:45 Sending SMS … ( ! ) Notice: Undefined offset: 1 in class.sms.php on line 93 Call Stack # Time Memory Function Location 1 0.0023 141448 {main}( ) ..\example.php:0 2 1.0200 192736 sms->send( ) ..\example.php:19 3 1.0200 193072 call_user_func ( ) ..\class.sms.php:53 4 1.0200 193088 sms->send_way2sms( ) ..\class.sms.php:53( ! ) Notice: Undefined offset: 1 in class.sms.php on line 98 Call Stack # Time Memory Function Location 1 0.0023 141448 {main}( ) ..\example.php:0 2 1.0200 192736 sms->send( ) ..\example.php:19 3 1.0200 193072 call_user_func ( ) ..\class.sms.php:53 4 1.0200 193088 sms->send_way2sms( ) ..\class.sms.php:53 Error encountered :

    Reply
  18. Khirod Dadsena

    Hii sir…
    I’m a MCA student and make a project for Kisan. so i requires FREE SMS SEND apps .
    please suggest me .

    Reply
  19. BandarQ Online

    I used to be recommended this website via my cousin. I’m not certain whether or not this post is written via him as no one else understand such
    detailed approximately my problem. You’re amazing! Thanks!

    Reply
  20. Bernie Soult

    I have learned newer and more effective things as a result of your web site. One other thing I’d like to say is the fact newer pc os’s are likely to allow additional memory to get used, but they also demand more ram simply to function. If one’s computer could not handle much more memory as well as newest program requires that memory increase, it may be the time to shop for a new Computer. Thanks

    Reply
  21. Heriberto

    Good post. I learn somethіng totally new ɑnd challenging on blogs І stumbleupon every day.
    It’s ɑlways exciting to read thr᧐ugh articles from other authors and
    practice ѕomething from other web sites.

    Reply
  22. crear pagina web

    Es un goce encontrar a alguien que realmente sabe lo que están hablando en Internet . Definitivamente, que sabes cómo llevar un blog a la luz y que sea importante. Más personas tiene que leer esto.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>