private function pageScrape( $url )
{
$page_stream = file_get_contents( $url );
$pattern = '/<link\s+(?=[^>]*rel="(?:[Ss]hortcut\s)?[Ii]con"\s+)(?:[^>]*href="(.+?)").*/>/';
preg_match( $pattern, $page_stream, $matches );
print_r( $matches );
// echo $page_stream;
}
gives error:
Warning: preg_match() [function.preg-match]: Unknown modifier '>' in /home/foo/public_html/foo/source/class.ControlBookmark.php on line 16
PHP.net reference on pcre