I have this code:
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.";
}
But it is not printing any errors? It seems like it just kills the php code after that include? It doesnt even print Include failed.