|
Posted by Ewoud Dronkert on 10/22/05 13:09
NurAzije wrote:
> read a content of a file and cut all the emails from it,then echo them,
Sorry, can't be bothered to check the code :) but try this:
$data = file_get_contents('http://www.bihstudenti.com/kontakt.php');
$match = array();
preg_match_all('/mailto:([^"]+)">/', $data, $match);
print_r($match[1]);
See http://php.net/preg-match-all
--
E. Dronkert
Navigation:
[Reply to this message]
|