Archive

Posts Tagged ‘tiny URL api’

PHP: Tiny URL API

December 10th, 2009 Jigish Thakar No comments

just a simple 2 line code to get tiny URL in to your application. sometimes we do need this blog or article module. It is just a passing your URL at tiny URL PHP api link and it returns the resulting tiny URL.

$u = "http://www.technoreaders.com/2009/12/10/php-tiny-url-api/";
echo file_get_contents('http://tinyurl.com/api-create.php?url='.$u);

isnt it simple? try it you ll love it

Share it If you like it
  • Digg
  • Reddit
  • Facebook
  • StumbleUpon
  • Twitter
  • Yahoo! Buzz
  • Google Bookmarks
  • del.icio.us
  • DZone
  • email
  • BlinkList
  • LinkedIn
  • Live
  • RSS
  • Technorati