upload problem on shared hosting

I have website I coded with Yii 1 that worked locally but not on server. If I upload few kb it works but something like 15Mb fails. I checked phpinfo and found execution time is set to 30. Checking the manual it is default.

To isolate the problem I tried to use cpanel to upload and it worked fine. So am suspecting that setting to be thw issue

How do you solve such an issue since I have no access to php.ini?

Did you try to add


set_time_limit(0);

in you code?

This may work if modification of this value is not restricted on you shared hosting.

You may check if it is restricted like this:




var_dump(ini_get('max_execution_time'));

set_time_limit(0);

var_dump(ini_get('max_execution_time'));



BTW, upload of big files may fail also because of upload_max_filesize, post_max_size, memory_limit settings.

Thanks.

I will test all of them!