What are some alternative methods to increase the upload time limit if the hosting provider restricts access to php.ini?

If the hosting provider restricts access to php.ini and you need to increase the upload time limit, you can try using an alternative method by setting the upload_max_filesize and max_execution_time directives directly in your PHP script using the ini_set() function.

ini_set('upload_max_filesize', '20M');
ini_set('max_execution_time', 300);