My 10 Favourite Android Apps So I’ve had my Android phone for nearly a month now and it’s actually changed the way I do a lot of things. I use my computer and laptop so little now it’s unbelievable and I’m just amazed at what I can do with my phone. I went for the…
23rd April, 2011 | Categories:
Cycling,
F1,
Tech,
Twitter | Tags:
Android,
DLNA,
Google,
Password,
postaweek2011,
SMS,
SSH,
TV
How To put your Twitter Posts on your Website function getTwitterPosts($username,$exclude){ $curl_conn = curl_init(); $user_followers = “http://twitter.com/statuses/user_timeline.xml?id=”.$username; curl_setopt($curl_conn, CURLOPT_URL, $user_followers); curl_setopt($curl_conn, CURLOPT_GET, 1); curl_setopt($curl_conn, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl_conn, CURLOPT_USERPWD, ‘username:password’); curl_setopt($curl_conn, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_conn, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($curl_conn); curl_close($curl_conn); $xml = new SimpleXMLElement($output); //!!!!! Formatting !!!!!// foreach($xml as $user){ if($exclude != “” && strstr($user->text,$exclude)){ //echo…
3rd May, 2010 | Categories:
Twitter | Tags:
api,
curl,
php,
twitter,
xml