-->

问答

您的当前位置:首页 > 问答 > PHP后台> PHP

如何得到一个网站的内容

2018-07-16 21:09:34提问者:游客 浏览 522 次

1.
$readcontents = fopen("http://www.zfx.fun/index.html", "rb");
$contents = stream_get_contents($readcontents);
fclose($readcontents);
echo $contents;
2.
echo file_get_contents("http://www.zfx.fun/index.html");

网友回答

相关问答更多 >

© 2024版权所有 水水网

电话:171780793