Php Tijs Verkoyen的Twitter课程

Php Tijs Verkoyen的Twitter课程,php,twitter,Php,Twitter,我试图使用该类更新twitter上的状态,但出现以下错误: /statuses/update.xml Could not authenticate you. 我的代码如下,我使用的是类1.0.5的最新版本 <?php include "twitter.php"; $twit = new Twitter("username","password"); $twit->updateStatus("Testing"); ?> 您是否尝试过在php.ini文件中禁用安全模式 safe

我试图使用该类更新twitter上的状态,但出现以下错误:

/statuses/update.xml Could not authenticate you.
我的代码如下,我使用的是类1.0.5的最新版本

<?php
include "twitter.php";
$twit = new Twitter("username","password");
$twit->updateStatus("Testing");
?>

您是否尝试过在php.ini文件中禁用安全模式

safe_mode off

为什么不在作者的博客上发表评论呢?从外观上看,Tijs对评论的反应相当迅速。