PHP Classes

File: examples/expand-urls.php

Recommend this page to a friend!
  Classes of Igor Escobar   Bitly-PHP   examples/expand-urls.php   Download  
File: examples/expand-urls.php
Role: Example script
Content type: text/plain
Description: How expand a shorten urls with Bitly-PHP
Class: Bitly-PHP
Expand or shorten URLs using the bit.ly site
Author: By
Last change: - new way to expand urls
Date: 14 years ago
Size: 173 bytes
 

Contents

Class file image Download
<?php
   
   
include_once("../bitly.php");
   
   
$bitly = new Bitly('<your_login>','<api_key>');
    echo
$bitly->expand('http://bit.ly/b6R4Uf');
   
// will echo the long url
?>