PHP Classes
elePHPant
Icontem

PHP Tiny URL: Create short URLs storing them in a MySQL database

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-04-25 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 284 All time: 7,396 This week: 330Up
Version License PHP version Categories
tiny-url-with-php 1.0Freeware5HTTP, PHP 5, Databases
Collaborate with this project Author

tiny-url-with-php - github.com

Description

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

It can create a short URL and store the short code and the long URL in a MySQL database.

The class can also expand the short URL and redirect to the long URL page.

  Performance   Level  
Name: Bharat Parmar <contact>
Classes: 11 packages by
Country: India India
Age: 28
All time rank: 62936 in India India
Week rank: 46 Up11 in India India Up
Innovation award
Innovation award
Nominee: 3x

 

Details

Tiny URL with PHP

Generate Tiny URL with PHP and Redirect to the Origional URL.

Developed By :

Bharat Parmar

Version :

1.0

Requirements :

1) PHP Version : 3.0 and above

File Structure :

1) example.php : Example Script file

2) index.php : This file will redirect to the Origional Long URL.

3) class/Tinyurl.class.php : Main Class file which includes methods for the Script.

4) database.sql : Database Structure for the script.

How to Use :

1) Set Your Site URL (Application URL) in the class/Tinyurl.class.php file ($this->SiteURL)

2) Set Your Database Connection in the DBConnection Method

3) Now you can created unlimited Tiny URL from example.php file.

  Files folder image Files  
File Role Description
Files folder imageclass (1 file)
Accessible without login Plain text file database.sql Data Database File
Accessible without login Plain text file example.php Example Example Script
Accessible without login Plain text file index.php Example Example Script
Accessible without login Plain text file README.md Doc. Read Me File

  Files folder image Files  /  class  
File Role Description
  Plain text file tinyurl.class.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 100%
Total:284
This week:0
All time:7,396
This week:330Up