im new at this what i need is some sort of php script that will extract the e-mail address from a page thank you
If you want to do this for an honest purpose, then copy and paste the one or two email addresses you would be seeking. If you are trying to build mailing lists . . . then you have found the reason why so many of us have removed email addresses from our sites and recommend that other's do the same and why some use obfuscators to thwart harvesting.
Your first post and you are wanting to harvest email addresses from websites? If this is really what you are doing then this is the wrong forum for you.
i dont need mass mail extractor what i need is just 2 extract 1 mail from 1 page for my users, and that page i want 2 be hidden and i dont have mysql database understand now?
yes something like that what i need its a box where u enter an userid and the script will need 2 get the e-mail address from other link cuz i dont have database and that link needs 2 be hidden... 4 exampe i have this link https://www.mysite.com/userid=USERHERE and in that box u enter jond doe and the script will place jon doe at userhere and get teh e-mail address from loaded page... i was thinking about a html form with the box like this <form action="https://www.website.com/fdsfs.php" method="get"> <p><label for="userid">User</label>: <input id="userid" name="userid" type="text" /></p> <p><input id="submit" name="submit" type="submit" value="Submit" /></p> </form> Code (markup):
If you cannot use an installed database such as MySql, you can craft your own database -- a simple text file with delimited values. Once you get the user name from the form, you could look for their record in the file and retrieve the email address and any other saved information. If you cannot find them, then they are not a registered user and you come back with a "user not found" warning. This requires a registration system where you collect the needed information and then write that to the flat file. You can prepopulate it with data you already have. When a user logs on you need to parse through the file seeking the right entry. This works with a small number of users. But, as your system grows, the time to collect information per user and the stress on the CPU will grow. Unfortunately, I do not have any code examples. But. if this is what you seek, I am sure you will find already crafted solutions. For example: BFormMail
thank you clancey i managed 2 resolve the issue with the mail extract what i need now its a script in php that will load my page without showing the link like the iframe from html just that in html u can see it by view source edited: i made the iframe but now i need a script when i enter the userid in a box it will add it after the userid=USERHERE and load trough the iframe ex <iframe src="www.mysite.com/userid=USERHERE" width="100%" height="100%">
function extract_emails_from($string){ preg_match_all("/[\._a-zA-Z0-9-]+@[\._a-zA-Z0-9-]+/i", $string, $matches); return $matches[0]; } $text = "blah blah blah email@address.com blah blah blah email2@address.com"; $emails = extract_emails_from($text); print(implode("\n", $emails)); This should parse the string for email addresses (found via http://textsnippets.com/posts/show/179). For all of the paranoid posts in lieu of an answer, here's a scenario where you need to parse text for email addresses: A bunch of bounced email messages come in from all sorts of mail servers. You need to parse these messages for the sender address. That one of about 100 legitimate uses for a email addresses extractor. Hope this helps, Mike