1. 首页
  2. 数据库
  3. 其它
  4. PHP实现从远程下载文件的方法

PHP实现从远程下载文件的方法

上传者: 2020-12-23 03:34:32上传 PDF文件 28.25KB 热度 12次
本文实例讲述了PHP实现从远程下载文件的方法。分享给大家供大家参考。具体实现方法如下: <?php if ($_GET[xfer]) { if ($_POST[from] == "") { print "You forgot to enter a url."; } else { copy("$_POST[from]", "$_POST[to]"); $size = round((filesize($_POST[to])/1000000), 3); print "transfer complete. $_POST[from]</a
下载地址
用户评论