Jump to content


Photo

email valadation on external website


  • Please log in to reply
No replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 30 August 2006 - 04:48 AM

what is wrong with this please does not seem to work properly if i take the last charecter of the email address still echo correct but that wrong please help.

<?php

$email="admin@google.com";

$remote_url="http://where the email is";

$match_pattern = preg_quote(rtrim($email, "/"), "/"); 

if ($handle = @fopen($remote_url, "r")) { 

while (!feof($handle)) { 

$part = fread($handle, 1024); 

if (preg_match("/$match_pattern./" , $part)) { 

echo "email there"; 
}
 }
fclose($handle); 

} else{

echo" no email sorry";

} 
?>

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users