問:此服務器上所有網站后臺登錄不顯示驗證碼。
http://www.hjfy.gov.cn/system/login.php,服務器環境異常,網站登錄后臺php驗證碼不顯示
答:您好
<?php
if(isset($_GET["act"]) && $_GET["act"] == "del" ){ //刪除測試文件
echo "當前清理路徑:<b>".$dir."</b> <a href=\\"?act=del\\" >[刪除測試文件]</a><BR/>";
if (!is_dir($dir)) die("$dir not exists");
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>\\n");
} else {
return ("<font color=red>BOM found.</font>\\n");
}
}
else return ("BOM Not Found.\\n");
}
function rewrite ($filename, $data) {
$filenum = fopen($filename, "w");
flock($filenum, LOCK_EX);
fwrite($filenum, $data);
fclose($filenum);
}
function in_extensions($file){
$extensions=array(\’php\’,\’PHP\’);
$info = pathinfo($file);
if (!isset($info[\’extension\’])) return false; #無后綴文件名跳過
if (in_array($info[\’extension\’], $extensions,true))
return true;
else
return false;
}
?>
問:感覺像是服務器環境問題
答:您好,Notice: Use of undefined constant MYSQLI_BOTH – assumed \’MYSQLI_BOTH\’ in D:\\www\\lxfy\\www\\include\\dedesqli.class.php on line 30