Tuesday, February 19, 2013

(PHP) Get short urls for Twitter with PHP - apphp-snippets



URL: http://www.apphp.com/index.php?snippet=php-get-short-urls-for-twitter

If you work with Twitter, you probably use a url shortener such as tinyurl.com or bit.ly to share/post your favorite blog posts or important messages with links on the network. This snippet take your url as a parameter and returns a short url.


Copy this code and paste it in your HTML

  1. <?php

  2. function getShortUrl($url){

  3. }

  4. ?>

Report this snippet ?

Source: http://snipplr.com/view/69983/get-short-urls-for-twitter-with-php/

barry sanders barry sanders jimmie johnson juan pablo montoya crash chardon high school shooting mark martin cleveland news

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.