Leoshen's Blog

php仅允许站内访问

2017-11-06   php,

<!--markdown--> $fromHost = array(

'blog.shenchenglin.cn',
'localhost',
'127.0.0.1'
);
$s = 'https://blog.shenchenglin.cn';
$urlArr = parse_url($s);
$host = isset($urlArr['host'])?    
$urlArr['host']:'';
$host =    strtolower(str_ireplace('www.','',$host  ));
echo $host.'-->';
提交

评论接口维护中,暂时无法使用...