Return to Snippet

Revision: 21954
at December 26, 2009 07:04 by mrgee


Initial Code
<?
function ShortURL($ToConvert) {
$short_url= file_get_contents('http://tinyurl.com/api-create.php?url=' . $ToConvert);
return $short_url;
}

$newurl = ShortURL('http://freepublic.info'); // shorten this URL
echo $newurl;
?>

Initial URL

                                

Initial Description

                                

Initial Title
Shorten URL with TinyURL

Initial Tags

                                

Initial Language
PHP