
PHP的自带checkdnsrr函数只在linux平台有效。使用惯了在window平台不能使用的话给兼容性带来麻烦。
因此写了个checkdnsrr模拟函数在window平台环境使用。
if (!function_exists(checkdnsrr )) {
function checkdnsrr($host, $type) {
if(!empty($host)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...

PHP的自带checkdnsrr函数只在linux平台有效。使用惯了在window平台不能使用的话给兼容性带来麻烦。
因此写了个checkdnsrr模拟函数在window平台环境使用。
if (!function_exists(checkdnsrr )) {
function checkdnsrr($host, $type) {
if(!empty($host)