MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/bosweb/b1705/libeyne.com.mv/
File Upload :
Current < : /hermes/bosweb/b1705/libeyne.com.mv/surl.php

<?php
# SHORTEN
# shortens a long url
$long_url = urlencode('http://www.cipher-inc.com/');
$short_url = file_get_contents('http://metamark.net/api/rest/simple?long_url='.$long_url);
echo $short_url;

echo '<br />';

# LENGTHEN
# returns the url that a shortened url points to
$short_url = 'http://xrl.us/bhho7x';
$long_url = file_get_contents('http://metamark.net/api/rest/simple?short_url='.$short_url);
echo $long_url;
?>