Posted By

laddy on 07/28/10


Tagged

twitter


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

MicronXD


Get shoturl


 / Published in: PHP
 

URL: http://www.phpsnippets.info/convert-url-to-tinyurl

  1. function getTinyUrl($url) {
  2. return file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
  3. }

Report this snippet  

You need to login to post a comment.