Other Stuff:
- Track (redlands)
- Follow
- Twittersearch. Embed it anywhere
- Twitterping, "ping" their web site.
- hperf (web site performance tool)
me on twitter:
@metarobert
Home of my projects:
32Hours.com
if(($twitter_XML_raw=file_get_contents($timeline))==false){
// Retrieve HTTP status code
list($version,$status_code,$msg) = explode(' ',$http_response_header[0], 3);
// Check the HTTP Status code
switch($status_code) {
case 200:
$error_status="200: Success";
break;
case 401:
$error_status="401: Login failure. Try logging out and back in. Password are ONLY used when posting.";
break;
case 400:
$error_status="400: Invalid request. You may have exceeded your rate limit.";
break;
case 404:
$error_status="404: Not found. This shouldn't happen. Please let me know what happened using the feedback link above.";
break;
case 500:
$error_status="500: Twitter servers replied with an error. Hopefully they'll be OK soon!";
break;
case 502:
$error_status="502: Twitter servers may be down or being upgraded. Hopefully they'll be OK soon!";
break;
case 503:
$error_status="503: Twitter service unavailable. Hopefully they'll be OK soon!";
break;
default:
$error_status="Undocumented error: " . $status_code;
break;
}
Comments
Hi Ka, You are welcome! Glad
Hi Ka,
You are welcome! Glad it has helped someone. This was one of those solutions that was non-intuitive to me, and I was hoping my wording (keywords) was right so that others with the same issue might find it.
Thanks,
Robert
Excellent... Thanks a lot
Excellent...
Thanks a lot dude for this trick. Now I can handle my error in a much cleaner way...
Cheers
Ka