Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to send SMS using PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 473
    Comment on it

    Php offers you to make the integration of sms. We will discuss how to use php to send sms to any mobile number:-

    Before we starts you need to have some any sms pack from mobile data companies but if you don't have you can make one you from twilio.

    All you have to do is getting your username, account_sid , auth_token.

    Now on the top of your php page you have to write the PHP code as below:-

    <?php
    // Get the PHP helper library from twilio.com/docs/php/install
    require_once('/path/to/twilio-php/Services/Twilio.php'); // Loads the library
    
    // Your Account Sid and Auth Token from twilio.com/user/account
    $sid = "{{ account_sid }}"; 
    $token = "{{ auth_token }}"; 
    $client = new Services_Twilio($sid, $token);
    
    $client->account->messages->sendMessage("+919635470819","Hi User,I'm just sending you a sms from my PHP web page.");
    

    source : twilio

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: