UPDATE 갑자기 - 아무 것도 변경하지 않고 일부 페이지에서 다시 작동합니다. 다른 페이지에서는 내 함수 function_exists ('decod')의 결과를 표시하지 않습니다. 아이디어 왜?치명적인 오류 : database.php의 정의되지 않은 함수를 호출하십시오.
는이 오류를 얻을 :
Fatal error: Call to undefined function decod() in database.php on line 10
그것은 전에 괜찮 았는데, 여기 database.php입니다 :
//Decode base64
function decod($string){
$string = base64_decode($string);
return ($string);
}
//Data double-coded with base64, just to prevent people reading
$host = "localhost";
$user = decod(DOUBLE_ENCRYPTED_USERNAME);
$pass = decod(DOUBLE_ENCRYPTED_PASSWORD);
$db = decod(DOUBLE_ENCRYPTED_DATABASE);
//Connect or print error
$con = mysql_connect($host, decod($user), decod($pass));
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
//Select database
mysql_select_db(decod($db), $con);
가리키는되었다 밝혀'DOUBLE_ENCRYPTED_USERNAME' 그것은이다 상수? –
갑자기 - 아무 것도 변경하지 않고 - 일부 페이지에서 다시 작동합니다. 다른 사람은 내 function_exists ('decod')의 결과를 표시하지 않습니다. 어떤 아이디어? – Niek