$fp = fopen("textfile.txt", "r");
while(!feof($fp)) {
$filename = fgets($fp);
$nf = fopen($filename, 'w');
fclose($nf);
}
$array = explode("\n", file_get_contents("grustny_fail.txt"));
foreach($array as $row) {
if (!file_exists($row . '.html')) {
$fp = fopen($row . '.html', "w");
fwrite($fp, "Y so seriouzzz?");
fclose($fp);
}
}