摘要:
今天搜索查看网页源码时为什么开头会有空行这个问题时找到的,批量去除PHP文件中bom的PHP代码需要去除BOM,就把附件里的tool.php文件放到目标目录,然后在浏览器访问tool.php即可!<?php/*检测并清除BOM*/ if(isset($_GET['dir'])){ $basedir=$_GET['dir']; }else{ $basedir = '.'; } $auto = 1; checkdir($basedir); function checkdir($basedir){ if($dh = opendir($basedi 阅读全文
posted @ 2012-11-02 10:31
meetrice
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号