Dynamically generate short URLs for a SQL database?
问题 My client has database of over 400,000 customers. Each customer is assigned a GUID. He wants me to select all the records, create a dynamic "short URL" which includes this GUID as a parameter. Then save this short url to a field on each clients record. The first question I have is do any of the URL shortening sites allow you to programatically create short urls on the fly like this? 回答1: TinyUrl allow you to do it (not widely documented), for example: http://tinyurl.com/api-create.php?url