国产欧美日韩 亚洲欧美日韩久久精品,婷婷精品视频在线观看,日本二区在线中文字幕,亚洲制服丝袜精品久久100部

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

      YourPHP、易思CMS等后臺(tái)登陸驗(yàn)證碼不顯示問(wè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  

      ?>

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

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