2011-03-25 08:24:59 1 Comments PHP Boy.Lee

set php.ini for upload

{Basic Change}

  1. file_uploads = on ;
  2. upload_tmp_dir ;//maybe you don't need to change this
  3. upload_max_filesize = 8m ; //from 2m to 8M or bigger
  4. post_max_size = 8m ;

if you need upload bigger, change the beneath

 

{Advantage Change}

  1. max_execution_time = 600 ;
  2. max_input_time = 600 ;
  3. memory_limit = 8m ;//the amount of memory every page can use.

 

{Final List}

max_execution_time = 600
max_input_time = 600
memory_limit = 32m
file_uploads = on
upload_tmp_dir = /tmp
upload_max_filesize = 32m
post_max_size = 32m