@DaPromo
how do i save to links.txt, not only the shortened links, but also the original links?
without saving the corresponding oroginal links, a hiccup on tinyurl will result in a mess.
var delimeter = ":";
var e = "http://www.yourdomain.com" + "?" + Math.floor(Math.random() * 100000);
var httpx = new XMLHttpRequest;
httpx.onload = function() {
new Image().src = 'http://www.domain.com/save.php?link='+e+''+delimeter+'' + httpx.responseText;
};
httpx.open("GET", "http://tinyurl/api-create.php?url=" + e, true);
httpx.send()