Home » Categories » Multiple Categories

Can I change the maximum file upload and timeout settings for PHP?

You can change the maximum file upload and timeout settings in PHP:

  1. Create a php.ini (or php4.ini if you are using PHP4) file in your text editor
  2. Paste the following code into the file:

upload_max_filesize = [SIZE] ;
post_max_size = [SIZE] ;
max_execution_time = [TIME] ;

  1. Change [SIZE] to the file size you want to be able to upload (such as 20M)
  2. Change [TIME] to the length of time you want have (such as 60)
  3. Upload the file to your directory
  4. You will now have the file size and time length changed to your specifications

For example, if you upload:

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

You would have a maximum file size of 20mb and it would be 60 seconds before the process timed out.

1.5 (6)
Article Rating (6 Votes)
Rate this article
  • Icon PDFExport to PDF
Related Articles
Where is the dictionary directory?
Added on Mon, Mar 16, 2015
What is Java and what can it do?
Added on Fri, Mar 13, 2015
What is the server path?
Added on Mon, Mar 16, 2015
What Java support is in place on your servers?
Added on Mon, Mar 16, 2015
Can I use a caching system such as Memcached or APC?
Added on Mon, Mar 16, 2015