ÜBERSICHT >> PICTURES // SA. 22.05.2010, AER Club Stuttgart
Latest Tweet:
include 'tweets.php';
//function makeClickableLinks($text)
//{
//if ($text != "") {
// $text = html_entity_decode($text);
// $text = " ".$text;
// $text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
// '\\1', $text);
// $text = eregi_replace('(((f|ht){1}tps://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
// '\\1', $text);
// $text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
// '\\1\\2', $text);
// $text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',
// '\\1', $text);
// return $text;
//}
//}
//
//
//
//
//
//
//
// function url_check($url) {
// $hdrs = @get_headers($url);
// return is_array($hdrs) ? preg_match('/^HTTP\\/\\d+\\.\\d+\\s+2\\d\\d\\s+.*$/',$hdrs[0]) : false;
// };
//
//
//
//
//function getTwitterStatus($userid){
//$url = "https://api.twitter.com/1/statuses/user_timeline/$userid.xml?count=1&include_rts=1callback=?";
//
//
//if (url_check($url) == true) {
//$xml = simplexml_load_file($url) or die("could not connect");
//
// foreach($xml->status as $status){
// $text = $status->text;
// }
//
// echo makeClickableLinks($text);
// }
//else {
// echo "bad news: could not connect to twitter :-(";
// }
//}
//
//// USAGE
//getTwitterStatus("delarocadeejays");
?>
CONNECT
Alle Termine & News direkt in dein Postfach...