Zodiak
recovering crack addict
- Nov 18, 2011
- 453
- 417
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 enjoy.
Database:
URL Shortener Script MySQL Version:
URL Shortener Script MySQLi Version:
Just open config.php and change the following:
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
Database:
You must be registered for see links
URL Shortener Script MySQL Version:
You must be registered for see links
URL Shortener Script MySQLi Version:
You must be registered for see links
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
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:
You must be registered for see links
You must be registered for see links
Have a nice day