webosb
06-28-2007, 07:34 PM
i'm trying to check a flat file for existing email addresses and I'm using this function:
function emailcheck($emailaddress) {
$str = strtoupper(file_get_contents("preferred.ext"));
if (strpos($str, strtoupper($emailaddress))){
return true;
}else{
return false;
}
}
for some reason, it doesnt seem to find the first email in the flat file, why is it? can someone offer some help?
thanks in advance
function emailcheck($emailaddress) {
$str = strtoupper(file_get_contents("preferred.ext"));
if (strpos($str, strtoupper($emailaddress))){
return true;
}else{
return false;
}
}
for some reason, it doesnt seem to find the first email in the flat file, why is it? can someone offer some help?
thanks in advance