This tutorial was originally written by @halfer
You may be getting a PHP error, but this application is not showing it to you. 000webhost.com doesn’t have a facility to get web server logs already. You can do it yourself though. Ready?
Now, in your /
folder, create a file called errors.log
OK, now in the public_html
folder, find your .htaccess
file and edit it. Add these lines:
php_value error_log ../errors.log
php_flag log_errors On
Notes:
- Also, ensure your logs are one level above the
public_html
dir - it is not good practise to make your error logs public
Then, re-run your script, and your new log file will capture PHP errors, if they are happening.
The log file file be located in the /
directory, errors.log
file.