丁香五月亚洲中文字幕|97人妻无码公开免费视频|日韩人妻中文免费二区|免费 日韩 AV 在线

  • <legend id="pelpv"><i id="pelpv"></i></legend>
  • <span id="pelpv"></span>

      1. 熱門搜索:網(wǎng)頁游戲 火箭球賽 熱門音樂 2011世界杯 亞運會 黃海軍演
        您現(xiàn)在的位置:首頁 >> 互聯(lián)網(wǎng)新聞 >> 內(nèi)容

        YourPHP、易思CMS等后臺登陸驗證碼不顯示問題解決方法

        時間:2015/1/19 9:29:19 點擊:

         

         

        驗證碼不現(xiàn)實解決方法:

        清除BOM即可!
        附上BOM清除工具 bom.php 放到你的網(wǎng)站根目錄下運行即可。ㄗ龇ǎ盒陆ㄓ浭卤,把下面代碼粘貼到新建記事本,然后把記事本文件名改為bom.php,上傳到根目錄,運行http://你的網(wǎng)站/bom.php 即可)

         

        <?php
        /*檢測并清除BOM*/ 
        if(isset($_GET['dir'])){  

        $basedir=$_GET['dir'];  

        }else{  

        $basedir = '.';  

        }   

        $auto = 1;   

        checkdir($basedir);  

        function checkdir($basedir){  

        if($dh = opendir($basedir)){  

        while(($file = readdir($dh)) !== false){  

        if($file != '.' && $file != '..'){  

        if(!is_dir($basedir."/".$file)){  

        echo "filename: $basedir/$file ".checkBOM("$basedir/$file")." <br>";  

        }else{  

        $dirname = $basedir."/".$file;  

        checkdir($dirname);  

        }  

        }  

        }//end while  

        closedir($dh);  

        }//end if($dh  

        }//end function  

        function checkBOM($filename){  

        global $auto;  

        $contents = file_get_contents($filename);  

        $charset[1] = substr($contents, 0, 1);   

        $charset[2] = substr($contents, 1, 1);   

        $charset[3] = substr($contents, 2, 1);   

        if(ord($charset[1]) == 239 && ord($charset[2]) == 187 && ord($charset[3]) == 191){  

        if($auto == 1){  

        $rest = substr($contents, 3);  

        rewrite ($filename, $rest);  

        return "<font color=red>BOM found, automatically removed.</font>";  

        }else{  

        return ("<font color=red>BOM found.</font>");  

        }  

        }   

        else return ("BOM Not Found.");  

        }//end function  

        function rewrite($filename, $data){  

        $filenum = fopen($filename, "w");  

        flock($filenum, LOCK_EX);  

        fwrite($filenum, $data);  

        fclose($filenum);  

        }//end function  

        ?>

        作者:信宜人 錄入:信宜人 來源:原創(chuàng)
        相關(guān)文章
        相關(guān)評論
        發(fā)表我的評論
        • 大名:
        • 內(nèi)容:
      2. 關(guān)于我們 | 服務(wù)條款 | 法律聲明 | 文章發(fā)布 | 在線留言 | 法律支援 | 人員認證 | 投訴建議 | 合作聯(lián)盟 | 版權(quán)所有 | 本站wap手機訪問
      3. 西安新聞網(wǎng)(hzshanye.cn) © 2024 版權(quán)所有 All Rights Reserved.
      4. 有害短信息舉報 | 陽光·綠色網(wǎng)絡(luò)工程 | 版權(quán)保護投訴指引 | 網(wǎng)絡(luò)法制和道德教育基地 | 西安通管局

      5. 南通新聞網(wǎng) 版 權(quán) 所 有 ,未 經(jīng) 書 面 授 權(quán) 禁 止 使 用
        商業(yè)咨詢 信息來自網(wǎng)絡(luò),不代表本站觀點,如有版權(quán)問題聯(lián)系客服!QQ:501734467
      6. #