在我的 Laravel 5.7 应用程序(PHP 7.2.10-0ubuntu0.18.04.1,开发模式)中,我安装了https://github.com/aloha/laravel-twilio插件
- Installing twilio/sdk (5.23.1): Downloading (100%)
- Installing aloha/twilio (4.0.2): Downloading (100%)
并使用它我得到了错误:
ErrorException (E_WARNING)
Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' (this will throw an Error in a future version of PHP)
并且没有发送短信。我想我可以在我的本地服务器上关闭 E_WARNING,但由于我的应用程序仍处于开发模式,我想保留它。
哪个可以在这里决定?
修改的:
我有 :
$ php -m [PHP 模块] bz2 calendar Core ctype curl date ...
我的 phpinfo 还显示已安装并启用: https ://imgur.com/a/AuCFxvC
在我的包管理器中,我看到: https ://imgur.com/a/wi9Dg6S
我的服务器上是否未安装或激活某些东西?
谢谢!