使用php怎么获取网站的备案信息

介绍

本篇文章为大家展示了使用php怎么获取网站的备案信息,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

代码如下:


& lt; ? php ,
函数miibeian(域)美元{,,
,,,(域=base64_encode美元域),,,
,,,选择美元=数组(,,
,,,,,,,,,,,& # 39;http # 39;=比;阵列(,,
,,,,,,,,,,,,,,,,,,,& # 39;方法# 39;=比;“GET",,,
,,,,,,,,,,,,,,,,,,,& # 39;超时# 39;=比;5,,,
,,,,,,,,,,,),,,
,,,,,,
,,,(上下文=stream_context_create美元选择),,,
,,,$ url=& # 39; http://webid.360.cn/complaininfo.php?domain=& # 39;。域;美元,
,,,$ html=file_get_contents ($ url,假的,$上下文),,,
,,,如果(大小写敏感(html、美元& # 39;未查询到网站信息& # 39;)){,,
,,,,,,,返回false,,,
,,,},,
,,,$国旗=& # 39;& lt; ul> & # 39;;,,
,,,美元开始=大小写敏感(html、国旗美元)+ strlen(美元标志);,,
,,,$ info=substr (html,美元开始,大小写敏感(html、美元& # 39;& lt;/ul> & # 39;)——美元开始),,,

,,,$ info=(& # 39;大小写不敏感& # 39;& # 39;& # 39;$ info);,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>网站名称:& lt;/strong> & # 39;, & # 39; & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>网站首页地址:& lt;/strong> & # 39;, & # 39;,, & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>主办单位名称:& lt;/strong> & # 39;, & # 39;,, & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>主办单位性质:& lt;/strong> & # 39;, & # 39;,, & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>审核时间:& lt;/strong> & # 39;, & # 39;,, & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt; li> & lt; strong>网站备案/许可证号:& lt;/strong> & # 39;, & # 39;,, & # 39;, $ info),,,
,,,$ info=str_replace (“\ r \ n", & # 39; & # 39;, $ info),,,
,,,$ info=str_replace (& # 39; & lt;/li> & # 39;, & # 39; & # 39;, $ info),,,
,,,(信息=削减美元信息);,,
,,,$ temp=爆炸(& # 39;,,& # 39;,$ info),,,
,,,返回临时美元;,,
},,
域=c3lzeXVuLmNvbQ==,
$结果=miibeian (& # 39; jb51.net& # 39;);,,
print_r(结果);

上述内容就是使用php怎么获取网站的备案信息,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注行业资讯频道。

使用php怎么获取网站的备案信息