php检索或者复制远程文件代码
时间:2021-07-01 10:21:17
帮助过:5人阅读
- if(!@copy('http://someserver.com/somefile.zip','./somefile.zip'))
- {
- $errors= error_get_last();
- echo "COPY ERROR: ".$errors['type'];
- echo "
\n".$errors['message']; - } else {
- echo "File copied from remote!";
- }
- ?>
|
php