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

  1. dhaval

    Logging in … Sending SMS …
    Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\Admin\SMS-API2.0\class.curl.php on line 49

    Reply
  2. rinku

    Logging in …
    Notice: Undefined index: 1 in D:\inetpub\vhosts\modernwebs.in\httpdocs\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined index: 1 in D:\inetpub\vhosts\modernwebs.in\httpdocs\class.sms.php on line 93

    Notice: Undefined index: 1 in D:\inetpub\vhosts\modernwebs.in\httpdocs\class.sms.php on line 98
    Error encountered :

    Reply
  3. Mohammad Imran Ansari

    when i use the it gives following error:

    Logging in …
    Notice: Undefined offset: 1 in D:\Imran Ansari\My Installed programs\xampp\htdocs\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in D:\Imran Ansari\My Installed programs\xampp\htdocs\class.sms.php on line 93

    Notice: Undefined offset: 1 in D:\Imran Ansari\My Installed programs\xampp\htdocs\class.sms.php on line 98
    Error encountered :

    Reply
  4. ritesh

    hey dude this is not working…
    can u updated it…
    way2sms and 160by2 both change their way of authentication and sending message..

    Reply
  5. prasanna

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

    Notice: Undefined offset: 1 in C:\wamp\www\online examination code\class.sms.php on line 98
    Error encountered :
    this are d errors i encountered plzz tell m d solution aesp

    Reply
  6. sherin

    I got an eror;

    Logging in …
    ( ! ) Notice: Undefined offset: 1 in C:\wamp\www\SMS -php\final code\class.sms.php on line 128
    Call Stack
    # Time Memory Function Location
    1 0.0005 370384 {main}( ) ..\sms-code.php:0
    2 0.0361 471488 sms->login( ) ..\sms-code.php:12
    3 0.0362 471792 call_user_func ( ) ..\class.sms.php:45
    4 0.0362 471808 sms->login_160by2( ) ..\class.sms.php:45
    Sending SMS …
    ( ! ) Notice: Undefined offset: 1 in C:\wamp\www\SMS -php\final code\class.sms.php on line 149
    Call Stack
    # Time Memory Function Location
    1 0.0005 370384 {main}( ) ..\sms-code.php:0
    2 0.4956 471592 sms->send( ) ..\sms-code.php:15
    3 0.4956 471896 call_user_func ( ) ..\class.sms.php:53
    4 0.4957 471912 sms->send_160by2( ) ..\class.sms.php:53
    Error encountered :

    Reply
  7. anbu

    hi this is my error….how to clear itLogging in …
    ( ! ) Fatal error: Call to undefined function curl_init() in C:\wamp\www\SMS-API(1)\class.curl.php on line 59
    Call Stack
    # Time Memory Function Location
    1 0.0003 369664 {main}( ) ..\example.php:0
    2 0.0025 477640 sms->login( ) ..\example.php:16
    3 0.0025 477944 call_user_func ( ) ..\class.sms.php:45
    4 0.0025 477960 sms->login_way2sms( ) ..\class.sms.php:45
    5 0.0025 478072 cURL->post( ) ..\class.sms.php:62

    Reply
  8. kamlesh

    hey brother i have an error while executing the code “Notice: Undefined offset: 1 in C:\wamp\www\SMS-API\class.sms.php on line 73
    Sending SMS …
    Notice: Undefined offset: 1 in C:\wamp\www\SMS-API\class.sms.php on line 93

    Notice: Undefined offset: 1 in C:\wamp\www\SMS-API\class.sms.php on line 98
    Error encountered”;

    Reply
  9. Anish

    Hello Kiran,

    Thank you for your wonderful post on sending SMSs via free gateways using PHP. For testing your script, I just want to download the script of you were written. When I tried, I found that it leads to 404 page.

    Can you let me know if there is a link I can download it. Otherwise it will be wonderful to get the code directly from the coder itself.

    Waiting for your response.

    Thanks & Regards

    Anish.

    Reply
  10. Rambo

    Its showing some error in the argument of send as

    Parse error: syntax error, unexpected ‘in’ (T_STRING), expecting ‘,’ or ‘;’ in C:\wampserver\www\test\sms check.php on line 9

    Reply
  11. Ashish

    I want to make a simple PHP Script which allows my users to send SMS that they have choosen from my site.
    Here on this page: http://freesmsbook.com/l-o-v-e/

    I have one sms, now I want to put one button like Send SMS, which should prompt for only Mobile No and this msg should be sent over that number.

    http://freesmsbook.com/ is my site and I want to integrate this service to each of my individual page. When recipient get this SMS in their Cell, it should come from Free SMS Book only.

    Is it possible?

    Reply

Leave a Reply to Sangmesh R Seege Cancel 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>