您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

列出hosts中绑定的域名

2024/3/13 6:14:38发布17次查看
在开发项目的过程中绑定的域名过多的时候,难免会忘记一些,这个脚本就是列出这些hosts,可以加入到localhost的默认页面中
<br>===hosts============= <?php if($hosts = file_get_contents('c:windowssystem32driversetchosts')){ $hosts = preg_replace('/d+.d+.d+.d+/', '<br>', $hosts); $hosts = preg_replace('/([^ | rn | t]+)/', '<a target="_blank"href="http://${1}/">${1}</a>', $hosts); echo ($hosts); } ?> <br>=====================
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product