How can one ensure that changes made to the php.ini file are being applied correctly?

To ensure that changes made to the php.ini file are being applied correctly, you can create a PHP script that outputs the current configuration settings. This script will help you confirm that the changes you made in the php.ini file are being recognized by the PHP interpreter.

<?php
phpinfo();
?>