<?php include_once("../bitly.php"); $bitly = new Bitly('<your_login>','<api_key>'); echo $bitly->shorten('http://www.google.com/'); // echo will output the shorten url ?>
info at phpclasses dot org