#vi /etc/php.ini
file_uploads = On 이겠지 당연히..
1. upload_max_filesize
한번에 업로드 가능한 사이즈를 설정한다.
upload_maz_filesize = 10M
설정시 10M까지 업로드 가능해진다.
2. post_max_size
post 최대 용량 설정이다
파일사이즈를 고려해서 사이즈를 설정해줘야한다.
post_max_size = 60M
3. max_execution_time
php실행시간인데 대용량의 경우 시간을 늘려주는것이 좋다.
4. max_input_time
실제 첨부파일 업로드시 데이터를 대기해주는시간이다
기본값은 낮게 설정되어있으므로 대용량 업로드시 올라가지 않는 주요원인이된다.
-1 설정이 무제한으로 적용된다.
5. memory_limit
php스크립트가 얼마나 많은 메모리를 받을것인가 결정한다
upload_max_filesize보다 같거나 커야한다.
-1설정의 경우 제한을 최대치로 허가하는 설정이다.
6. max_file_uploads
한번에 업로드 가능한 파일갯수를 설정한다.
더욱자세한 내용은 직접찾아보자
https://www.php.net/manual/en/ini.list.php
PHP: List of php.ini directives - Manual
List of php.ini directives This list includes the php.ini directives you can set to configure your PHP setup. The "Changeable" column shows the modes determining when and where a directive may be set. See the Changeable mode values section for their defini
www.php.net
'기타 > PHP' 카테고리의 다른 글
curl (0) | 2019.09.10 |
---|---|
implode,explode (0) | 2019.06.20 |
MSSQL_FETCH ROW, ASSOC, ARRAY (0) | 2019.04.15 |
$_SESSION (0) | 2019.04.15 |
It is not safe to rely on the system's timezone settings (0) | 2019.02.20 |