摘要: 1.获取远程文件大小及信息的函数function getFileSize($url){ $url = parse_url($url); if($fp = @fsockopen($url[’host’],empty($url[’port’])?80:$url[’port’],$error)){ fputs($fp,"GET ".(empty($url[’path’])?’/’:$url[’path’])." HTTP/1.1\r\n"); fputs($fp,"Host:$url[host]\r\n\r\n"); while(!feof 阅读全文
posted @ 2014-01-21 14:31 幻星宇 阅读(1092) 评论(0) 推荐(0) 编辑