我不知道为什么会收到此错误
Fatal error: Class 'ctwitter_stream' not found in C:\wamp\www\twitter.tld\index.php on line 11
这是我的代码
<?php
require 'ctwitter_stream.php';
$t = new ctwitter_stream();
$t->login("x", "y", "z", "z");
$t->start(array('facebook', 'fbook', 'fb'));
?>
但是在同一个目录中我得到了文件ctwitter_stream.php
。
class ctwitter_stream
{
private $m_oauth_consumer_key;
private $m_oauth_consumer_secret;
private $m_oauth_token;
private $m_oauth_token_secret;
private $m_oauth_nonce;
private $m_oauth_signature;
private $m_oauth_signature_method = 'HMAC-SHA1';
private $m_oauth_timestamp;
private $m_oauth_version = '1.0';
public function __construct()
{
//
// set a time limit to unlimited
//
set_time_limit(0);
}
答案 0 :(得分:-1)
验证文件{ctwitter_stream.php}的路径和权限。这应该 工作