I started the beginner with php. I need to get errors that append in my website I use below code for log errors into file but do not work. This has no any error.
<!DOCTYPE html>
<html>
<body>
<?php
ini_set('display_startup_errors',1);
ini_set('display_errors',1);
error_reporting(E_ALL);
echo "My first PHP script!";
error_log( "Hello, errors!" );
?>
</body>
</html>
What is problem?
error_log()"sent to PHP's system logger, using the Operating System's system logging mechanism or a file, depending on what the error_log configuration directive is set to"