url-shorter func base on PHP