Create Bit.ly Short URLs Using PHP

One of the more popular URL shortening services is Bit.ly. I’ve showed you how to create short URLs with TinyURL and Is.Gd, so why not show you how to create Bit.ly URLs remotely? The PHP /* make a URL small */ function make_bitly_url($url,$login,$appkey,$format = ‘xml’,$version = ‘2.0.1’) { //create the URL $bitly = ‘http://api.bit.ly/shorten?version=’.$version.’&longUrl=’.urlencode($url).’&login=’.$login.’&apiKey=’.$appkey.’&format=’.$format; //get … Continue reading Create Bit.ly Short URLs Using PHP