Jump to content

search website for email address


redarrow

Recommended Posts


This code i love i worked it all out but how does one get to seach

for a specific email on a website thank you.

advance thank you.

i tried for 6 hours last week no joy.

search_for_url.php
[code]
//<?php


//$your_link="http://www.what_ever.co.uk";

//$remote_url="http://www.what_ever";

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

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

//while (!feof($handle)) {

//$part = fread($handle, 1024);

//if (preg_match("/<a(.*)href=[\"']".$match_pattern.

//"(\/?)[\"'](.*)>(.*)<\/a>/", $part)) {

//echo "links there";
//}
// }
//fclose($handle);

//} else{

//echo" no link sorry";

//}

//?>
[/code]
Link to comment
Share on other sites

what please do i do to get this code to search for a email form external website.

i tried but no joy.

is there any way you no to help  in this situation please thank you.
[code]
<?php


$your_link="http://www.what_ever.co.uk";

$remote_url="http://www.what_ever";

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

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

while (!feof($handle)) {

$part = fread($handle, 1024);

if (preg_match("/<a(.*)href=[\"']".$match_pattern.

"(\/?)[\"'](.*)>(.*)<\/a>/", $part)) {

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

} else{

echo" no link sorry";

}

?>
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.