View Single Post
Old 05-04-2009, 09:52 PM  
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by qwe View Post
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.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote