Hi everyone,
For a while I’have been looking for a solution for my problem with a twitter php file what used to work at first.
I’ found out that it’s because my server doesn’t support the old php anymore. So on the internet i’ looked for the problem and think
it’s: $content = get_content, but I’ don’t know that for shure.
Can anyone help me with a solution or tell me what i’ can do to make it work.
I’ got the file from: http://www.republicofcode.com/tutori…r_widget/3.php
<?php
/*
* @return string
* @param string $url
* @desc Return string content from a remote file
* @author Luiz Miguel Axcar (lmaxcar@yahoo.com.br)
*/
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=blue_chi");
echo $content;
?>
Thanks in advance,
Marv