php 采集其它服务器文件程序
2014-01-08 15:54
232 查看
php教程 采集其它服务器文件程序
*/
header("pragma:no-cachern");
header("cache-control:no-cachern");
header("expires:0rn");
$rmurl = "http://www.php100.com/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
采集其它服务器文件程序
*/
header("pragma:no-cachern");
header("cache-control:no-cachern");
header("expires:0rn");
$rmurl = "http://www.php100.com/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
采集其它服务器文件程序
相关文章推荐
- php 采集其它服务器文件程序
- php实现从ftp服务器上下载文件树到本地电脑的程序
- 从ftp服务器上下载文件树到本地电脑的php程序
- 小程序的图片上传wx.uploadFile及后台PHP接收文件并存储到服务器
- PHP编写文件多服务器同步程序
- 微信小程序文件上传php服务器$_FILES[xxx][type] = application/octet-stream问题
- PHP编写文件多服务器同步程序
- php实现从ftp服务器上下载文件树到本地电脑的程序
- PHP多服务器文件同步程序
- 微信小程序购买配套的腾讯云服务器配置php文件方法
- PHP程序上传文件时,想指定上传到另一台服务器,php-ftp_connect
- PHP调用DLL和引用其它的.php文件示例
- 使用php_screw为php程序文件加密
- 如何在数据采集程序中判断JPG文件下载完整了?
- PHP程序,将csv转成sql文件并导入数据库
- C#中运行批处理文件(bat)或其它程序或脚本
- PHP程序加速探索之服务器负载测试
- 采集程序php
- php 实现多文件上传程序代码
- Android使用HttpClient实现文件上传到PHP服务器,并监控进度条