pollefittor
New Member
In order to upload large files in PHP I need to increase the file size / timeout values. I am not talking about changing the \[code\]php.ini\[/code\], but doing it at run time. The corresponding values are\[code\]ini_set('upload_max_filesize', '20M');ini_set('post_max_size', '20M');ini_set('max_input_time', 300);ini_set('max_execution_time', 300);\[/code\]or \[code\]void set_time_limit ( int $seconds )\[/code\]But I wonder where I need to set this, or whether I can do it at all? Because when the upload data are sent, the script is only executed after the data are received. So the timeout kicks in, before I can increase it, or am I wrong?So where would I need to apply the settings?