LoginSignup
0
1

More than 3 years have passed since last update.

php アップロードサイズを変更する

Last updated at Posted at 2020-03-04

以下のようにセット設定が必要です

ini_set()では変更できない。                                    

php.iniを変更する                                  
htaccessで設定する                                 
httpd.confで設定する                                   


/etc/php.ini                                    
memory_limit = 40M                                  
post_max_size = 32M                                 
upload_max_filesize = 8M                                    


/.htaccess                  実行phpファイルと同じフォルダ              
php_value memory_limit "40M"                                    
php_value post_max_size "32M"                                   
php_value upload_max_filesize "8M"                                  


/httpd.conf                                 
php_value memory_limit "42M"                                    
php_value post_max_size "32M"                                   
php_value upload_max_filesize "8M"                                  
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1