PHP Fatal error2 PHP Fatal error: Uncaught Error: Call to undefined function PHP Fatal error: Uncaught Error: Call to undefined function 주로 사용하고자 하는 함수가 선언되지 않았을 때 나타나는 오류. function을 사용 할 때 function명을 올바로 썼는지 혹은 function이 선언되어 있는지 확인해야 한다. 예시) // Bad; @include_once('/data/funcstions.php'); $test = call_the_function(); // Good! @include_once('/data/funcstions.php'); if(function_exists('call_the_function')){ $test = call_the_function(); } Server Language/PHP 2020. 3. 10. PHP Fatal error: Cannot use isset() on the result of an expression PHP Fatal error: Cannot use isset() on the result of an expression isset()함수를 사용할 때 안에 값에 변수에 $ 안붙였을 때 많이 발생. 예시) isset(test); // Bad; isset($test); // Good; Server Language/PHP 2020. 3. 9. 이전 1 다음