this code use to work fine, then I just noticed that its not
working can anyone tell me why ?
$recip = "xxximagegallery.com";
$fhandle= file($url);
$content= implode('', $fhandle);
if(preg_match("/".$recip."/i", $content)){
$tmp = shell_exec("echo '$Site_Name:$Email:$cat:$url' >> 'tocrawl.txt'");
header("Location: added.shtml");
}
else{
header("Location: notadded.shtml");
}
i always get notadded.shtml even if the site has the link on the page