pztv_shorturls

It is a small set of PHP scripts that will allow you to run your own URL shortening service. Have used it internally and for projects in the past.