PHP Function for Expanding Bit.ly Short URLs
Bit.ly is quickly becoming the defacto standard for URL shortening, and offers a pretty good API for developers. I was looking for a way to expand bit.ly short URLs to the original, long URLs they redirect to, and ended up writing this function:
// given a bit.ly url, passed in as $url, return the long form [...]

