News for hackers. Stuff that matters.
Re:Create a Game Character with HTML5 and JavaScript by f1gm3nt on Wednesday July 06, 2011 @09:29AM (#2733759)
I think this is a better example of why you need to have code in place to fail gracefully.

try { file_get_contents(http://api.twitter.com/1/statuses/user_timeline.xml?screen_n...); } catch (Exception $e) { }

OR

if ($contents = @file_get_contents(http://api.twitter.com/1/statuses/user_timeline.xml?screen_n...) { //stuff }

There are no comments on this comment yet.