IT/php

php 파일 업로드 용량

조원태 2017. 1. 26. 04:31
반응형

php 파일 업로드 용량

ini_set("upload_max_filesize", '20M');  

– 쵀대 파일 업로드 사이즈를 설정함

 

ini_set("post_max_size", '30M');  

  – Post 방식으로 넘겨질 최대 데이터 사이즈 (파일 크기 + input 전송용량)


 

ini_set("max_execution_time", '30') 

  – PHP가 실행되는 최대 시간을 넘기면 에러가 발생함.

  – 0은 무제한 시간

  – 기본값: 30

  

ini_set("memory_limit", '20M')

  – 메모리 사용량 설정.

  – 최대 업로드 가능 용량.



 

반응형