问:此服务器上所有网站后台登录不显示验证码。
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