Hi there, I am using PHP TWITTER library by David Billingham version "0.1". Around 8 days back my app was working perfectly with this library
but now it's terrific. E.g here what i am getting as a result for ratelimit() method: phptwitter.php [CODE] <?php class twitter{ var $username=''; var $password=''; var $user_agent=''; var $headers=array('X-Twitter-Client: ', 'X-Twitter-Client-Version: ', 'X-Twitter-Client-URL: '); var $responseInfo=array(); function twitter(){} function ratelimit(){ $request = 'http://twitter.com/account/rate_limit_status.xml'; $ratearr = $this->process($request); } function process($url,$postargs=false){ $ch = curl_init($url); if($postargs !== false){ curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, $postargs); } if($this->username !== false && $this->password !== false) curl_setopt($ch, CURLOPT_USERPWD, $this->username.':'.$this->password); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_NOBODY, 0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_USERAGENT, $this->user_agent); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers); $response = curl_exec($ch); $this->responseInfo=curl_getinfo($ch); curl_close($ch); if(intval($this->responseInfo['http_code'])==200){ if(class_exists('SimpleXMLElement')){ $xml = new SimpleXMLElement($response); return $xml; }else{ return $response; } }else{ return false; } } } ?> [/CODE] Get_rate_limit.php [CODE] <?php include("phptwitter.php"); $t= new twitter(); $ratearrx = $t->ratelimit(); print_r($ratearrx)."<br><br>"; var_dump($ratearrx); ?> [/CODE] It gives blank for print function and "NULL" as result for var_dump function. Why this is so? Rushi.