php检索或者复制远程文件代码

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<?php
if(!@copy('http://someserver.com/somefile.zip','./somefile.zip'))
{
    $errors= error_get_last();
    echo "COPY ERROR: ".$errors['type'];
    echo "<br />\n".$errors['message'];
} else {
    echo "File copied from remote!";
}
?>