使用PHP不需要找到类构造函数


Using PHP requires not finding class constructor

我不知道为什么我会得到这个错误

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);
    }

验证文件{ctwitter_stream.php}的路径和权限。它应该工作