Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Untitled Document</title>
- </head>
- <body>
- <?php
- require_once '../../twilio-php-master/Twilio/autoload.php';
- use Twilio\Rest\Client;
- $sid = "AC579f950b5f423413698a89bc463713ee";
- $token = "ef3a546cc8670bde2696db5fa1d32ca9";
- $twilio = new Client($sid, $token);
- print($message->sid);
- $servername = "localhost";
- $username = "workshe3_test";
- $password = "cats8000";
- $dbname = "workshe3_test";
- $conn =new mysqli($servername, $username, $password, $dbname);
- $sql = "SELECT * FROM numbers";
- $result = $conn->query($sql);
- while($row = $result->fetch_assoc())
- $number = $row["Number"];
- $message = $twilio->messages
- ->create($number, // to
- array(
- "from" => "+12342629241",
- "body" => "if you read this you owe ty 5$"
- )
- );
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement