Login   Register  
PHP Classes

URL shortener by hycus: Create short URLs storing them in a MySQL database

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-04-14 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 573 All time: 4,897 This week: 1,344Up
Version License PHP version Categories  
url-shortener-hycus 1.0Freeware5.0HTTP, Databases
Description Author  

This class can be used to create short URLs storing them in a MySQL database.

It can create a short key for an URL and store the key and URL association in a MySQL database table.

The class can also lookup for a given short URL key and redirect to the associated URL using HTTP redirection headers or HTML with JavaScript to redirect to the expanded URL page.

It can use mod_rewrite to redirect the access to the short URL to a script that uses this class to do the actual redirection.

Picture of Vasanth V
Name: Vasanth V <contact>
Classes: 1 package by
Country: India India
Age: 27
All time rank: 2792183 in India India
Week rank: 1779 Up122 in India India Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file .htaccess Data This class works only with htaccess in apache
Plain text file hycus_urlshortener.php Class Main class file
Accessible without login Plain text file index.php Example Example file

 Version Control Unique User Downloads Download Rankings  
 0%Total:573All time:4,897
 This week:0This week:1,344Up