Home > php教程 > php手册 > body text

php 采集其它服务器文件程序

WBOY
Release: 2016-06-06 19:45:00
Original
1022 people have browsed it

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 = s

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 采集其它服务器文件程序

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template