我在网站上搜索了几个小时,但没有找到答案。我已经安装了PHP/Apache2/PECL/OAuth并编辑了php.ini文件以启用
链接如下:https://raw.github.com/gist/820281/303a61ee9b324070e803e51806552e64fccfdd4c/example.php和https://gist.github.com/raw/820281/6bf1b6d78dd05daef319ce84a88eedf139a44b5a/TwitterAutoReply.php。
extension=oauth
。每次输入"php example.php"都会出现以下错误提示,而我已经在example.php中设置了令牌和所需的所有内容:
我的php文件是example.php和TwitterAutoReply.php。PHP致命错误:在/home/twitter/TwitterAutoReply.php的第22行找不到类“OAuth”
链接如下:https://raw.github.com/gist/820281/303a61ee9b324070e803e51806552e64fccfdd4c/example.php和https://gist.github.com/raw/820281/6bf1b6d78dd05daef319ce84a88eedf139a44b5a/TwitterAutoReply.php。
class OAuth
(PHP文件),而不是Apache扩展。 - Jakub