Quote:
Originally Posted by Killswitch
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.
|
ok i put in
$pass = array(pass.txt);
$fail = array(fail.txt);
when I run it, it's doing something, but i don't see good/bad urls going to txt files