Home >Backend Development >PHP Tutorial > 没法获取超链接

没法获取超链接

WBOY
WBOYOriginal
2016-06-13 12:57:25986browse

无法获取超链接
$url="http://ca178.qjwm.com/";
$fp=@fopen($url,"r") or die("超时");
$fcontents=file_get_contents($url);
print_r($fcontents);
preg_match_all('/.*邀请.*/i', $fcontents, $matches);
print_r($matches);

我想获取含有邀请关键词的链接,但是一直是空的,求指导

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn