0 Replies - 1091 Views - Last Post: 20 September 2010 - 08:05 PM

#1 creativecoding   User is offline

  • Hash != Encryption
  • member icon


Reputation: 931
  • View blog
  • Posts: 3,216
  • Joined: 19-January 10

Shorten URL's with .tk

Posted 20 September 2010 - 08:05 PM

Description: use like: $newUrl = shorten($oldUrl);
function shorten($url){
$url = "http://api.dot.tk/tweak/shorten?long=" . $url;
$raw = file_get_contents($url);
function strstrb($h,$n){
    return array_shift(explode($n,$h,2));
}

return strstrb($raw,'http://tk.');
}


Is This A Good Question/Topic? 0
  • +

Page 1 of 1