I have a new site for URL shortening services at http://nuurl.com. I could use some help in adding additional features such as showing the number of characters for the old URL and the new URL that's created. I'd also like to be able to have a list of the 10 most recent links added. Can someone help?
You can use strlen for finding the length of the string. How do you provide the shortened url? By having a corresponding entry in your database? In that case you can retrieve the last 10 entries without much work.
Use strlen() to get length of old and new url, and make a query to DB $sql = "SELECT * FROM YOURTABLE ORDER BY id DESC LIMIT 10"; Hope this helps.
Thanks for your all help but I'm not sure what to do really. I'd like more things added as well, and I'd be able to offer advertisements and stuff in exchange. Please PM me if anyone is interested in helping me out here. Oh yeah, the new URL is http://nuurl.us now. It's shorter than the other . Thanks!