Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Basic URL Shortener
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Zodiak" data-source="post: 261413" data-attributes="member: 9300"><p><strong>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<img src="/styles/default/xenforo/smilies/emojione/tongue.png" class="smilie" loading="lazy" alt=":p" title="Stick Out Tongue :p" data-shortname=":p" /> enjoy.</strong></p><p></p><p>Database:</p><p><a href="http://www.mediafire.com/download/jkfvi77i8xwd7wj/url.sql" target="_blank">http://www.mediafire.com/download/jkfvi77i8xwd7wj/url.sql</a></p><p>URL Shortener Script MySQL Version:</p><p><a href="http://www.mediafire.com/download/mnyycpkcazrr6f8/URLShortner+MySQL.rar" target="_blank">http://www.mediafire.com/download/mnyycpkcazrr6f8/URLShortner+MySQL.rar</a></p><p>URL Shortener Script MySQLi Version:</p><p><a href="http://www.mediafire.com/download/rh1pa6sioz9r9vo/URL+Shortener+MySQLi.rar" target="_blank">http://www.mediafire.com/download/rh1pa6sioz9r9vo/URL+Shortener+MySQLi.rar</a></p><p></p><p><strong>Just open config.php and change the following:</strong></p><p><strong>[PHP]$sitename = "URLCollapse"; //Website Name</strong></p><p><strong>$slogan = "Shortening URLs since 2014!"; //Website Slogan</strong></p><p><strong>$siteurl = "http://localhost"; //Website URL</strong></p><p><strong></strong></p><p><strong>$host = "localhost"; //MySQL Host</strong></p><p><strong>$user = "root"; //MySQL Username</strong></p><p><strong>$pass = "lolage11"; //MySQL Password</strong></p><p><strong>$db = "url"; //MySQL Database Name[/PHP]</strong></p><p><strong>To your MySQL details and your URL Shortener name.</strong></p><p><strong>The slogan is <title>name here - slogan here</title>.</strong></p><p><strong>Site URL = Your domain, keep it as localhost if you wish to just keep it on your localhost.</strong></p><p></p><p>Screenshots:</p><p><a href="http://prntscr.com/2me6o4" target="_blank">http://prntscr.com/2me6o4</a></p><p><a href="http://prntscr.com/2me7d5" target="_blank">http://prntscr.com/2me7d5</a></p><p></p><p><strong>Have a nice day<img src="/styles/default/xenforo/smilies/emojione/thumbsup.png" class="smilie" loading="lazy" alt=":up:" title="Thumbs Up :up:" data-shortname=":up:" /></strong></p></blockquote><p></p>
[QUOTE="Zodiak, post: 261413, member: 9300"] [B]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.[/B] Database: [url]http://www.mediafire.com/download/jkfvi77i8xwd7wj/url.sql[/url] URL Shortener Script MySQL Version: [url]http://www.mediafire.com/download/mnyycpkcazrr6f8/URLShortner+MySQL.rar[/url] URL Shortener Script MySQLi Version: [url]http://www.mediafire.com/download/rh1pa6sioz9r9vo/URL+Shortener+MySQLi.rar[/url] [B]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[/PHP] 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.[/B] Screenshots: [url]http://prntscr.com/2me6o4[/url] [url]http://prntscr.com/2me7d5[/url] [B]Have a nice day:up:[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Basic URL Shortener
Top