Return to Snippet

Revision: 30197
at August 10, 2010 00:25 by jrobinsonc


Initial Code
<?php
function acortar_url($url){
	$apiurl = "http://tinyurl.com/api-create.php?url=".$url;
	$url_corta = file_get_contents($apiurl);
	return $url_corta;
}
//Ejemplo de uso
echo acortar_url("http://www.webintenta.com");
?>

Initial URL

                                

Initial Description

                                

Initial Title
Función para acortar URLs con PHP y TinyURL

Initial Tags

                                

Initial Language
PHP