资 源 简 介
This project is simply a link shortening site, it takes a link, searches the database to check if the link already exists, and if it doesnt, it creates a random string, alpha-numeric with upper and lower case, then continues to check if it already exists within the database, and if it does, it creates another one until it creates a random string which does not exist in the database. It returns the new link to the user which points to the given link in the database which is done using php header() function. Still todo: It doesnt check to make sure the given link is a url, or in url form, or if the url is real, can easily be done using regex and curl...