国产成年免费看片,92福利1000集在线观看 视频,欧美中文字幕在线第一页,国产美女喂奶精品一区二区

<legend id="uuoyg"></legend>

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

        YourPHP、易思CMS等后臺(tái)登陸驗(yàn)證碼不顯示問題解決方法

        時(shí)間:2015/1/19 9:29:19 點(diǎn)擊:

         

         

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

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

         

        <?php
        /*檢測(cè)并清除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)評(píng)論
        發(fā)表我的評(píng)論
        • 大名:
        • 內(nèi)容:
        本類固頂
        • 沒有
      1. 關(guān)于我們 | 服務(wù)條款 | 法律聲明 | 文章發(fā)布 | 在線留言 | 法律支援 | 人員認(rèn)證 | 投訴建議 | 合作聯(lián)盟 | 版權(quán)所有 | 本站wap手機(jī)訪問
      2. 成都新聞網(wǎng)(www.dqcdc.com.cn) © 2025 版權(quán)所有 All Rights Reserved.
      3. 有害短信息舉報(bào) | 陽光·綠色網(wǎng)絡(luò)工程 | 版權(quán)保護(hù)投訴指引 | 網(wǎng)絡(luò)法制和道德教育基地 | 成都通管局

      4. 成都新聞網(wǎng) 版 權(quán) 所 有 ,信息來自網(wǎng)絡(luò)轉(zhuǎn)載,不確定真實(shí),如有版權(quán)問題聯(lián)系客服QQ:501734467
      5. 3