[PHP2.07] What are the maximum file upload and timeout settings for PHP, and can I change these?

You can change these parameters using a php.ini (or php4.ini if you are using PHP4) file. Simply create a file of this name in the same directory of your script (or update the existing file), with the content:-

upload_max_filesize = 20M ;
post_max_size = 20M ;
max_execution_time = 60 ;

(this example would increase the maximum upload to 20MB, and timeout to 60seconds).

Was this answer helpful?

 Print this Article

Also Read

[PHP2.13] Can I connect to a MSSQL database from my linux shared hosting account?

Yes, you can connect to MSSQL databases through PHP5 via the ms_sql extension and the ms_sqli...

[PHP2.10] Can you set "register_globals" to ON in PHP for me?

Such a global change to the php.ini config is a well known security risk and affects all other...

[PHP2.08]Can I override php.ini settings?

Some variables in the php.ini file can be overwritten, you can do this creating a php.ini file in...

[PHP2.04] How do I query a MySQL database from a PHP script?

Use the following outline to connect and begin querying the MySQL server from within your PHP...