4 ms·
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_timel
by f1gm3nt 15y ago
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_name=williamMalone 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_name=williamMalone) http://api.twitter.com/1/statuses/user_timeline.xml?screen_n...)
{
//stuff
}