hello

i want to count retweets for special tweets. but it doesn´t work. with
error_reporting( E_ALL |  E_STRICT ); i get no error message

error_reporting( E_ALL |  E_STRICT );
ini_set('display_errors', TRUE);

$user = 'user';
$pass = 'xxx';

$strTwitURL = 'http://twitter.com/statuses/retweets/10660323641.json';

$curl = curl_init();

curl_setopt($curl, CURLOPT_URL, $strTwitURL);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($curl, CURLOPT_USERPWD, "$user:$pass");

$query = json_decode(curl_exec($curl));

curl_close($curl);

foreach($query as $output)
{
    echo $count = count( $output->id);
    echo '<br>';
}

To unsubscribe from this group, send email to 
twitter-development-talk+unsubscribegooglegroups.com or reply to this email 
with the words "REMOVE ME" as the subject.

Reply via email to