Heim >Backend-Entwicklung >PHP-Tutorial >php 采集其它服务器文件程序_PHP教程

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-20 11:09:051013Durchsuche

php教程 采集其它服务器文件程序
*/
header("pragma:no-cachern");
  header("cache-control:no-cachern");
  header("expires:0rn");
  $rmurl = "http://www.bkjia.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);


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444833.htmlTechArticlephp教程 采集其它服务器文件程序 */ header(pragma:no-cachern); header(cache-control:no-cachern); header(expires:0rn); $rmurl = http://www.bkjia.com/demodata.txt; $infost...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn