URL Shortening script written in PHP