0
它出現以下錯誤。致命錯誤:require_once():XAMPP中需要打開失敗
Warning: require(validation_functions.php): failed to open stream: No such file or directory in C:\xampp\htdocs\practice\validation_errors.php on line 11
Fatal error: require(): Failed opening required 'validation_functions.php' (include_path='.;c:\php\includes;') in C:\xampp\htdocs\practice\validation_errors.php on line 11
我已經找到了解決方案,但沒有正確得到它。
getcwd(); -> C:\xampp\htdocs\practice
和
echo $_SERVER["DOCUMENT_ROOT"]; -> C:/xampp/htdocs
哪裏'validation_functions.php'在文件結構存在? – JustOnUnderMillions
validation_functions.php應該放置在validation_errors.php文件中 –
都位於/ htdocs/practice文件夾中 –