Lessn More: An open-source personal URL shortening service. There’s got to be an easier way … bookmarklet sends current url to web service which launches a pop-up window like WordPress “Press This.” Service presents default options for shortening service and analytics campaign code. User selects [Twitter|Facebook|LinkedIn] chooses correct GACT code, submits. Service shortens via bit.ly [...]
Archive for the ‘webservices’ Category
Shorten URLs with is.gd PHP and cURL
Posted in code, webservices on May 11, 2009 | Leave a Comment »
Here’s some quick stub-code for shortening urls using PHP + cURL and the http://is.gd/ api. function is_gd_shorten_url($url_to_shorten, $use_curl=false) { # uses cURL or fopen to return the short version of a URL # fopen requries the php.ini setting allow_url_open=on which # many web hosts don’t allow, cURL requires PHP to be compiled # with cURL [...]
