自己用的备案查询接口开放-PHP源码
function checkICP($url = '', $type = '') {
$url = trim($url);
if(empty($url)) {
return;
}
$htmltext = file_get_contents('http://api.befen.net/icp/'.$url);
if(empty($htmltext)) {
return;
}
if($type == 'all') {
return $htmltext;
} else {
$icparr = explode(',', $htmltext);
return $icparr[2];
}
}
/phpyy/44234.htmlwww.phpzy.comtrue/phpyy/44234.htmlTechArticle自己用的备案查询接口开放-PHP源码 function checkICP($url = , $type = ) {$url = trim($url);if(empty($url)) {return;}$htmltext = file_get_contents(http://api.befen.net/icp/.$url);if(empty($htmltext)) {return;}if($type == all) {re...
PHP之友评论