File: README

package info (click to toggle)
nanourl 0.1-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 88 kB
  • ctags: 20
  • sloc: sh: 93; php: 50; makefile: 39; sql: 6
file content (12 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
NanoURL 0.1 - Acidus (acidus@msblabs.org)

Don't beat up on TinyURL. Here is the NanoURL, which lets you run an equivilent service to
TinyURL on your localhost. All that is required is Apache, php with mysql spport, and a mysql database.

Simply place the create.php and redirect.php into your web root.

Use the following mysql commands to create the database used by NanoURL.

mysql> CREATE DATABASE nanourl;
mysql> GRANT SELECT, INSERT ON nanourl.* TO nanourl@localhost IDENTIFIED BY 'nanourl';
mysql> CREATE TABLE urls ( hash char(5) NOT NULL, url LONGBLOB, PRIMARY KEY (hash)) type=MyISAM;