Home
Softono
Simple-PHP-URL-Shortener

Simple-PHP-URL-Shortener

Open source CSS
14
Stars
5
Forks
0
Issues
2
Watchers
1 year
Last Commit

About Simple-PHP-URL-Shortener

# Simple-PHP-URL-Shortener A Simple PHP Script for URL shortening. This script is Open Source, please feel free to contribute written by Yusha /* Author: Yusha Y. Web: www.yusha.ca */ Installation: Create a database with a user and run this sql `CREATE TABLE IF NOT EXISTS `url_shorten` ( `id` int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, `url` tinytext NOT NULL, `short_code` varchar(50) NOT NULL, `hits` int(11) NOT NULL, `added_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1; ` Copy the index.php file to your domain or subdomain root directory and change the db name, username and password. You can add additional protection to make the page private.

Platforms

Web Self-hosted

Languages

CSS

Links

Simple-PHP-URL-Shortener

A Simple PHP Script for URL shortening. This script is Open Source, please feel free to contribute written by Yusha

/ Author: Yusha Y. Web: www.yusha.ca /

Installation:

Create a database with a user and run this sql

CREATE TABLE IF NOT EXISTSurl_shorten( idint(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, urltinytext NOT NULL, short_codevarchar(50) NOT NULL, hitsint(11) NOT NULL, added_datetimestamp NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

Copy the index.php file to your domain or subdomain root directory and change the db name, username and password.

You can add additional protection to make the page private.