How to use mangk.us URL shortener API on your PHP application
There are two Basic functions in api.php :
"short" and "url"
example :
+ short
URL : http://mangk.us/api.php?short=http://mangk.us/panggi
result : http://twitter.com/panggi
+ url
URL : http://mangk.us/api.php?url=http://opensecuritylab.org
result : http://mangk.us/2
With that basic functions on mangk.us you can make a function on your PHP application , but remember not to use URL encoding when you send the URL to mangk.us .
Code :
$request = 'http://mangk.us/api.php?url=' . $url;
$result = processCurl( $request );
if ($result) return $result;
else return false;
It's not a full code and you have to develop it by yourself .