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/

seal seal and heidi klum drew peterson untouchable herman cain south carolina palmetto rob lowe sanctum

No comments:

Post a Comment