直接看代码吧,很好明白的复制代码 代码如下://用法 echo remote_filesize($url,$user=”,$pw=”);$url = “http://huoche.7234.cn/images/jb51/tlvche23ra3.jpg”;//这里要换成你的图片地址echo remote_filesize($url,$user=”,$pw=”);
function remote_filesize($uri,$user=”,$pw=”){// start output bufferi