TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   help with curl parsing email addresses. (http://www.talkphp.com/absolute-beginners/3207-help-curl-parsing-email-addresses.html)

sarmenhb 08-03-2008 12:24 AM

help with curl parsing email addresses.
 
im trying to figure out how to parse email addresses from a webpage
this is how far i got.

Code:

<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://www.google.com');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); ;
$data = curl_exec($ch);
curl_close($ch);

?>

the variable $data holds the html source code and i tryed using preg_match to look for the email and print it out.
can someone show me a sample code on how to do this

thanks

sarmenhb 08-04-2008 03:31 AM

fine, i wont use email parsing. how do i parse keywords then..


All times are GMT. The time now is 01:00 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0