Author

Topic: How do you want to fetch your shorted urls, JavaScript or PHP? (Read 125 times)

full member
Activity: 630
Merit: 100
*Bump*
I’m curious to hear what you have to say on this.
If no one cares, what would be the point of putting in the extra work?
full member
Activity: 630
Merit: 100
I’m currently in the final stages of writing the code for a shortener API/script.
URL Shortener APIs are most often used on the sever side and PHP is the most common language.
As I was toying with different options, I realized I could do it with a common script tag including a .js file and you’d get the url by using a common listener.
Security wise, it wouldn’t matter much the public key is only good for one thing, to GET the shortened url.

As it stands today, I’ll probably go for the server side solution. But if it turns out a lot of you want a JavaScript implementation, I might just add this option as well.
The benefit is quite obvious, using JavaScript anyone can get the short link from any page without having access to the server side code. And no coding skills are required...

I haven’t worked out all the details since this is such an odd idea, but I don’t see any immediate  impossible obstacles.

Feel free to comment and make suggestions yourself if you feel lik it.
Jump to: