Quote:
Originally Posted by qwe
I don't see a code where I load up .txt file with urls ? 
|
Off Voodoo's code:
PHP Code:
<?php
error_reporting(0);
$pass = array();
$fail = array();
if($urls = file('textfile.txt'))
{
foreach($urls as $url)
{
$string = 'THE TEXT YOU WANT TO CHECK FOR';
$handle = fopen($url, "rb");
$contents = stream_get_contents($handle);
$count=substr_count($contents, $string);
if($count > 0)
{
$pass[] = $url;
}else{
$fail[] = $url;
}
}
}
?>
All you have to do is write $pass array to another text file for the pass urls, and same with $fail array to a fail text file.