- file_get_contents: documentation ( source)
- print_r: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$contenido=file_get_contents('http://www.cristalab.com/foros');
$regexp='/(?:<br \/>)(?:<a href="profile\.php.*>)?(.+)(?:<\/a>)?(?:\ <a href="viewtopic\.php.*"><img src="templates\/smartBlue\/images\/icon_latest_reply\.gif")/';
preg_match_all($regexp,$contenido,$matches);
print_r($matches[1]);
?>