che warning ti da?
Codice PHP:
<?php
$file = file_get_contents('./prova.txt', FILE_USE_INCLUDE_PATH);
$array = explode("\n", $file);
foreach( $array as $var_temporanea ) {
if(!empty($var_temporanea)){
$homepage = file_get_contents(trim($var_temporanea));
if(!strpos($homepage,'TESTO')){
echo "Non trovato.
";
file_put_contents("nontrovato.txt", $var_temporanea."\n", FILE_APPEND);
}else{
echo "Trovato!
";
file_put_contents("trovato.txt", $var_temporanea."\n", FILE_APPEND);
}
}
}
?>
ho fatto una prova e così a me funziona..