Skip to content

T-PHP/short2longURL

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 
 
 

short2longURL

Convert Short URL to Long URL.

Two modes : check one or multiple urls

Supported websites : goo.gl, bit.ly, tiny.cc, ow.ly, u.nu, tinyurl.com and 200+ more...

Version 0.4.0

  • Add function Authorized Websites List
  • Add response code
  • Add CSS Class "glyphicon-check" & "glyphicon-remove"

Demo

https://demo.t-php.fr/short2longURL/

Preview

Screenshot 1 Screenshot 2

Installation

  1. Download script
  2. Unzip the package
  3. Transfer on your server (local or online)
  4. It's finish !

Configuration

Autorized Websites

Edit 'index.php' or 'multiple-urls.php' and modifiy line :

$websites = array('goo.gl', 'bit.ly', 'tiny.cc');

For authorized all websites, array must be empty :

$websites = array();

Nb of maximum urls to check

Edit 'multiple-urls.php' file and change value to define 'NB_URLS_MAX'. In this example, you can check 5 urls :

define('NB_URLS_MAX', '5');