PHP微型url编解码函数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP微型url编解码函数相关的知识,希望对你有一定的参考价值。
The first function make short urls.The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location" header string, here is the code:
function doShortURL($url) { return $short_url; } function doShortURLDecode($url) { return $a[1]; }
以上是关于PHP微型url编解码函数的主要内容,如果未能解决你的问题,请参考以下文章