Jump to content

email valadation on external website


redarrow

Recommended Posts

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.

[code]
<?php

$email="[email protected]";

$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";

}
?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/19097-email-valadation-on-external-website/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.