Some ideas for you shortener people:
Change the code a bit and make a linkbucks/adf.ly challanger. (as of now, at least cuul.tk will only allow shortening an identical url once (thus e,g. youtube.com = cuul.yk/a even if you submit it a billion times)) (you may still keep the "only shortening" part open for everyone though)
Make a registration system (as you would need that for the LB/ADFLY function)
-Earn money, make a new one just for fun
BTW: Get Group;
in my opinion, a short URL is not only there to be short, but also easy to remember/type in, so your =>.tk would cause confusion for people trying to write down the URL.
Both of you:
Allow people to submit multiple URLs with the API;
E.g. for a code w/o custom URL could be as simple as:
Code:
<?php
foreach($_GET as $url => $null) {
shorten($url);
}
function shorten($url) {
/* CODE TO SHORTEN THE URL */
echo "$url<br />"; //You could do some nifty XML here, or just do something like this, as anyone could explode simple <br /> tags within their code.
}
?>
Thus you could have an api like this:
http://shorten.com/api.php?http://ur...ttp://url3.com
Note that I typed url3.com twice, but the foreach $_GET will only get one of the double (or multiple typed) urls.
Custom URL id, could be given with e.g. api.php?
http://url1.com=CUSTOMTITLE&http://url2.com=CUSTOMTITME, in my code $null would be the same as CUSTOMTITLE and $URL would be the corresponding URL address.
I hope I gave you an idea
Just another thing, a simple script to change all URLs within a webpage to a redirect through your website could be similar to this (if you are planning on making a Linkbucks competitor for example)
Code:
<script>
function getDomainFromHREF(url) {
return url.match(/:\/\/(.[^/]+)/)[1]; //Stolen code, doesn't know where it came from, long time ago ;)
}
var links = document.getElementsByTagName("a");
var x;
for (x in links) {
if(getDomainFromHREF(links[x].href) != "mortenrb.com") { //If the domainname does not equal to mortenrb.com
links[x].href = "http://shorten.com/r.php?" + links[x].href; //Then the links should go through shorten.com/r.php
}
}
</script>