What are the best practices for managing PHP configuration variables like upload_max_filesize?

When managing PHP configuration variables like upload_max_filesize, it is important to ensure that the value is set appropriately to allow for the desired file upload size. This can be done by updating the php.ini file or using ini_set() function in your PHP script.

// Update upload_max_filesize in php.ini
upload_max_filesize = 20M
```

```php
// Using ini_set() function in your PHP script
ini_set('upload_max_filesize', '20M');