<?php
$list = file_get_contents('sitelist.txt');
$explode = explode("http://", $list);
$i = 1;
for ($i = 1; $i < count($explode); $i++) {
$filename = 'tost.txt';
$fp = fopen($filename, "a+");
$write = fputs($fp, $explode[$i] . "\n");
fclose($fp);
}
echo "ok";
?>
它不是在 tost.txt 中写入或放入任何内容。这里有什么问题?