Bogomil "Bogo" Shopov

Products. Security. Privacy. Ethics.

  • Home
  • Who’s Bogo
  • Lean-Agile
  • Open Technologies
  • Privacy
  • Security

Tag: Short url

Quick short URL PHP function

Categories Open TechnologiesAugust 27, 2010
function shortURL($long)
{
 $short=file_get_contents("http://is.gd/api.php?longurl=".$long);
 return $short;
}

Usage:

$short = shortURL("http://veryveryveryverylongurl.tld/something/verylong.php");
echo $short;
APIPHPShort url
1 Comment

Proudly powered by WordPress

Theme by moyu