$url = "http://baidu.com/index.php/activation?".$data['username']; 原地址
处理
$url = urlencode($url);
$res = @file_get_contents('http://suo.im/api.php?url=' . $url);
$res 就是转换后的短地址
参考资料
http://suo.im/
$url = "http://baidu.com/index.php/activation?".$data['username']; 原地址
处理
$url = urlencode($url);
$res = @file_get_contents('http://suo.im/api.php?url=' . $url);
$res 就是转换后的短地址
参考资料
http://suo.im/