|
-
Need some more help
ok-I went back to the tutorial at http://www.republicofcode.com/tutori...r_widget/3.php and made a twitter.php file as instructed:
PHP Code:
<?php
/*
* @return string
* @param string $url
* @desc Return string content from a remote file
* @author Luiz Miguel Axcar ([email protected])
*/
function get_content($url)
{
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_HEADER, 0);
ob_start();
curl_exec ($ch);
curl_close ($ch);
$string = ob_get_contents();
ob_end_clean();
return $string;
}
#usage:
$content = get_content ("http://twitter.com/statuses/user_timeline.xml?screen_name=myusername");
echo $content;
?>
Still doesnt work.
If I go to the twitter.php on my site--http://mysite/twitter.php-
it returns this:
/statuses/user_timeline.xml?screen_name=myname Rate limit exceeded. Clients may not make more than 150 requests per hour
help?
Thanks,
---Yvette
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|