php获取301跳转URL简单实例
复制代码 代码如下:/** * get_redirect_url() * Gets the address that the provided URL redirects to, * or FALSE if there’s no redirect. * * @param string $url * @return string */function get_redirect_url($url){ $redirect_url = null; $url_parts = @parse_url($url); if (!$url_parts) return false; if
下载地址
用户评论