PHP error handling with .htaccess & writing into php_error.log text file
问题 For PHP error handling with the aim of "only admin sees the warnings, errors etc."; I applied the steps below: I deleted error_reporting(-1); command from my index.php I added rows below into my .htaccess which is just under public_html folder I created error_modes folder in my public_html folder I created .htaccess file in error_modes folder I set the permissions of the error_modes folder as 777 , writable. intentionally, I wrote <?php 'should see this error in log file' ?> in my footer.inc