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
Why can’t I run scripts uploaded by my additional FTP accounts?
Added on Fri, Mar 13, 2015
How do I upload a CGI script into my hosting account?
Added on Mon, Mar 16, 2015
What is PHP?
Added on Fri, Mar 13, 2015
What is JavaScript?
Added on Fri, Mar 13, 2015
What is Java and what can it do?
Added on Fri, Mar 13, 2015