写入文件,创建xunlei批量任务

[php] <?php $arr = array(); $arr[] = 'http://s1.dwstatic.com/group1/M00/83/4A/834a040953745f52e8acf314d3d0c9579147.jpg'; $arr[] = 'http://s1.dwstatic.com/group1/M00/B9/6F/b96f055303fec2b4d80835ca0a70d63e8903.jpg'; $arr[] = 'http://s1.dwstatic.com/group1/M00/86/F8/86f8053b9c658e4627e992a4476ff1528107.jpg'; $arr[] = 'http://s1.dwstatic.com/group1/M00/15/3C/153cdcb0971233f519ab4d49ff1d3d2b2265.jpg'; $file = fopen('1.lst', 'w'); if($file){ $content = implode("n", $arr); if(fwrite($file, $content)){ fclose($file); } } die ("ok!!!"); ?> [/php]

你可能感兴趣的:(文件)