How can PHP timeouts be adjusted to accommodate the upload of large files in a form submission process?

When uploading large files in a form submission process, PHP timeouts may occur due to the default settings limiting the maximum execution time and maximum upload size. To adjust these timeouts, you can increase the `max_execution_time` and `upload_max_filesize` settings in your PHP configuration file or using the `ini_set()` function in your PHP script.

// Adjust PHP timeouts for uploading large files
ini_set('max_execution_time', 300); // Set maximum execution time to 5 minutes
ini_set('upload_max_filesize', '100M'); // Set maximum upload size to 100MB