0
我有這樣的代碼:php包括失敗?
if (file_exists(CHAL_DIR . $row['filename'])) { // Check if the file exists or not.
if(!include('' . CHAL_DIR . $row['filename'])) { // Include the Challenge's class file.
echo "Include failed.";
} else {
echo "I win.";
}
} else {
echo "File " . CHAL_DIR . $row['filename'] . " does not exist.";
}
但它不打印任何錯誤?它似乎只是殺死後的PHP代碼包括?它甚至不打印包含失敗。