Show DevBest Basic URL Shortener

Zodiak

recovering crack addict
Nov 18, 2011
450
411
Yo, this is a basic URL Shortener script I coded when I got bored since I've seen quite a few that are like 4 pages full of php code when that's pretty pointless considering one can be coded using a few lines.. Anyways, as MySQL has been deprecated I've also coded one using MySQLi so if you haven't updated your php you can use the basic MySQL one, if you have you can use the MySQLi one:p enjoy.

Database:

URL Shortener Script MySQL Version:

URL Shortener Script MySQLi Version:


Just open config.php and change the following:
PHP:
$sitename = "URLCollapse"; //Website Name
$slogan = "Shortening URLs since 2014!"; //Website Slogan
$siteurl = "http://localhost"; //Website URL

$host = "localhost"; //MySQL Host
$user = "root"; //MySQL Username
$pass = "lolage11"; //MySQL Password
$db = "url"; //MySQL Database Name
To your MySQL details and your URL Shortener name.
The slogan is <title>name here - slogan here</title>.
Site URL = Your domain, keep it as localhost if you wish to just keep it on your localhost.


Screenshots:



Have a nice day:up:
 

Hindi

System.out.println(" ");
Dec 30, 2012
989
192
You can add the .htaccess to even decrease the URL Size. Good work though, I've coded and released one before. :up:
 

Zaka

Programmer
Feb 9, 2012
471
121
It's not really short :/, for it to be short it should have been for example.
 

Hindi

System.out.println(" ");
Dec 30, 2012
989
192
It's not really short :/, for it to be short it should have been for example.
That depends on your domain dude, Also I said the above thing, Should be extremely short, He could write .htaccess for it as I did, here..

 

Zaka

Programmer
Feb 9, 2012
471
121
That depends on your domain dude, Also I said the above thing, Should be extremely short, He could write .htaccess for it as I did, here..

Not talking about the domain, talking about the rest -> /url/8199malsom8kroaikqkaniiaoa

EDIT: Looked at your post, 1 letter and so on after is no good later on.
 
Last edited:

Users who are viewing this thread

Top