Just to move to the blog, the plan is to transfer two of space data but encountered some problems, the packaging of the file is too big to think of PHP can download files remotely
And then I wrote a script!
03 |
if ($_POST[from] == "") { |
04 |
print "You forgot to enter a url."; |
05 |
} else { |
06 |
copy("$_POST[from]", "$_POST[to]"); |
07 |
$size = round((filesize($_POST[to])/1000000), 3); |
08 |
print "transfer complete.
|
09 |
$_POST[from]
|
10 |
$_POST[to] : $size MB"; |
13 |
print " |
14 |
远程文件下载地址(请带上http://):
|
But not all of the virtual hosts are supported, to see whether some functions are open, what function I do not know
http://www.bkjia.com/PHPjc/477848.html www.bkjia.com true http://www.bkjia.com/PHPjc/477848.html techarticle just to move the blog, plan to move two of space data to migrate but encountered some problems, the packaging of the file is too big to think of PHP can download the file remotely and then wrote a script ...