Mega Code Archive
Categories
/
Php
/
File Directory
Use file_get_contents with a URL
$url = 'http://www.demo.com/'; $page = file_get_contents($url); if (preg_match_all('@
.+?
@', $page, $matches)) { foreach ($matches[0] as $link) { print "$link
\n"; } } ?>