What is the purpose of the php.ini file in PHP configuration?

The php.ini file is used to configure various settings for PHP on a server, such as maximum file upload size, error reporting level, and memory limit. By modifying the php.ini file, you can customize PHP behavior to suit your specific needs.

// Example of changing the maximum file upload size in php.ini
upload_max_filesize = 20M