I have a huge problem with sendnotification.php
- I am running a localhost.
- I purchased two Twilio numbers, trying to send a message from one to the other
- I downloaded the SDK manually, and extracted it into my directory folder
Here is the short code (with placeholders):
<?php
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';
use Twilio\Rest\Client;
$AccountSid = "x";
$AuthToken = "y";
$client = new Client($AccountSid, $AuthToken);
$sms = $client->account->messages->create("+11111111", "+222222222", "Hey");
?>
<!-- html ... -->
It shows only a blank white page. If I comment out the last $sms ...
line, the html shows but no message is sent.
What is the problem?