Class not found on line 77. Why do I only get this error when calling the script from
a cron job, but when called in the url the code runs fine.
Using twilio sms api
my code is plain and looks like this
''' include_once './new-twilio-project/twilio-php-main/src/Twilio/autoload.php'; //需要DIR.'./new-twilio-project/twilio-php-main/src/Twilio/autoload.php';
//use Twilio\Rest\Client;
//the line below is line 77
$client = new Twilio\Rest\Client($account_sid, $auth_token);
''' 错误说未捕获的错误:类 twilio 是