php.ini文件无法正常工作?

I'm taking a php course. I made a php.ini file to show errors.

I have the code below on my php.index file. But instead of the error being displayed just nothing shows up. What am I doing wrong?

index.php code:

 <?php

$test="I"m a variable!";

echo $test;

?>

This my php.ini code:

 display_errors = on
 display_startup_errors = on

Your file name should be index.php so your server can recognize it as a PHP file.

What is 'php.index'? Normally the index page is index.php

Where is your php.ini file located? Where is it supposed to be located?

Do you have access to php interpider (command line)?

phpinfo() can help you location the php.ini file(s)

You should check your error reporting directives

error_reporting = E_ALL
display_errors = ON

But please note that PARSER errors are not being show in display errors, but in error_log.

Make sure you are loading the php.ini file that you've created.

call phpinfo() and check the route of the php.ini to see if you are loading yours.