redarrow Posted August 30, 2006 Share Posted August 30, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.