我试图使用https://github.com/ricardoper/TwitterOAuth获取示例
这是我得到的:
Notice: Use of undefined constant CURLOPT_URL - assumed 'CURLOPT_URL' in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 448
Notice: Use of undefined constant CURLOPT_HEADER - assumed 'CURLOPT_HEADER' in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 449
Notice: Use of undefined constant CURLOPT_HTTPHEADER - assumed 'CURLOPT_HTTPHEADER' in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 450
Notice: Use of undefined constant CURLOPT_RETURNTRANSFER - assumed 'CURLOPT_RETURNTRANSFER' in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 451
Notice: Use of undefined constant CURLOPT_SSL_VERIFYPEER - assumed 'CURLOPT_SSL_VERIFYPEER' in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 452
Fatal error: Call to undefined function TwitterOAuth\curl_init() in /var/www/twitter/TwitterOAuth-1/TwitterOAuth/TwitterOAuth.php on line 460
Run Code Online (Sandbox Code Playgroud)
我在这里想念一些图书馆吗?
问题是没有安装php5-curl.所以按照步骤应该解决问题.
sudo apt-get install php5-curl
sudo service apache2 restart
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2085 次 |
| 最近记录: |