In your php file, use this code.This will turn on error reporting in your code.
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(-1);
The above code will show you the errors. It won't log the error.
To log the errors, I did a quick google search and found...