最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php 采集其它服务器文件程序
时间:2010-10-19 编辑:简简单单 来源:一聚教程网
header("pragma:no-cachern");
header("cache-control:no-cachern");
header("expires:0rn");
$rmurl = "http://www.111com.net/demodata.txt";
$infostring = file_get_contents($rmurl) or die("连接远程网址失败!");
$infos = split(',',$infostring);
$maxnum =count($infos);
$rmurl = trim($infos[rand(0,$maxnum-1)]);
$zipbin = file_get_contents($rmurl);
$fp = fopen(dirname(__file__).'/dedev56demo.zip','w');
fwrite($fp,$zipbin);
unset($zipbin);
fclose($fp);
相关文章
- php移动文件夹和文件程序代码 12-05
- PHP文件搜索程序代码 10-08
- php txt文件记数器 程序代码 09-28
- PHP导出数据超时的优化建议解读 10-31
- PHP之mysql位运算解析 10-31
- Laravel实现登录跳转功能解析 10-31