摘要:本文实例讲述了php检索或者复制远程文件的方法。分享给大家供大家参考。具体实现方法如下:<?php if(!@copy('http://someserver.com/somefile.zip','./somefile.zip')) { $errors= error_get_last(); echo&nb
本文实例讲述了php检索或者复制远程文件的方法。分享给大家供大家参考。具体实现方法如下:
<?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!";
}
?>更多关于php检索或者复制远程文件的方法请关注PHP中文网(www.php.cn)其他文章!