PHPShortURL
This is a little open source clone of any of a number of url shortening services like tinyurl.com. It’s a drop in php script that for maximum tinyness requires a couple lines of modification to your httpd.conf to utilize mod_rewrite. It doesn’t require a database, and you can try it out at http://url.fibiger.org.
You can also download the source here.
Instructions:
Untar all the files to a web directory.
add these lines to the httpd.conf to enable mod rewrite:
RewriteEngine on RewriteRule ^/$ /add.php RewriteRule ^/(\w*)$ /index.php?x=$1
change the variable $urlbase in add.php to reflect the
url you’re hosting the scripts at.
Finally, make sure url-map.php has permissions so that
it’s writeable by PHP.







