PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 307 All time: 7,322 This week: 171Up
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.

Picture of Bharat Parmar
  Performance   Level  
Name: Bharat Parmar <contact>
Classes: 11 packages by
Country: India India
Age: 32
All time rank: 52230 in India India
Week rank: 180 Up17 in India India Up
Innovation award
Innovation award
Nominee: 3x

Example

<?php
@include("class/tinyurl.class.php");
$TinyURL = new TinyURL();
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Tiny URL with PHP : Bharat Parmar</title>
    </head>
<body>
    <h4>Make Tiny URL : </h4>
    <form method="post">
        <div>
                <input type="text" name="long_url" value="" placeholder="Enter Your Original URL" size="100">
                <input type="submit" name="submit_url" value="Generate Tiny URL">
        </div>
    </form>

    <div><br><?php $TinyURL->DisplayTinyURL();?></div>

</body>
</html>



  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:307
This week:0
All time:7,322
This week:171Up