How can I determine why a PHP page on my web-host has not compiled?
Where are the compiler errors logged to?
How can I determine why a PHP page on my web-host has not compiled?
Where are the compiler errors logged to?
Should be in the same directory as the file that runs the code. Switch all error reporting on with:
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
ini_set('error_log', 'script_errors.log') // change here
ini_set('log_errors', 'On')
Try This:
Put the following code on the top of your file:
ini_set("log_errors", 1);
ini_set("error_log", "/path/to/php-error.log");
For more information please read bellow mention articles.
http://perishablepress.com/advanced-php-error-handling-via-php/
http://www.cyberciti.biz/tips/php-howto-turn-on-error-log-file.html
There's no such thing as compiler errors in PHP. Every error that occurs is sent directly to the browser in form of HTML data. Check that you have set error_reporting(E_ALL); and display_errors(1); in your script.
The remote server returned an error: (500) Internal Server Error.CompileError is thrown for some compilation errors, which formerly issued a fatal error.PHP not normally being compiled, I guess you are looking for runtime errors. How to display runtime errors can be controlled with the error_reporting() method.
That said, there are indeed PHP-compilers like HipHop by Facebook, so if "compiler errors" are what you are looking for, I believe you will have to elaborate a bit further on your question.