UPLOAD_ERR_OK
Value: 0; There is no error, the file uploaded with success.
UPLOAD_ERR_INI_SIZE
Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.
UPLOAD_ERR_FORM_SIZE
Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.
UPLOAD_ERR_PARTIAL
Value: 3; The uploaded file was only partially uploaded.
UPLOAD_ERR_NO_FILE
Value: 4; No file was uploaded.
UPLOAD_ERR_NO_TMP_DIR
Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
UPLOAD_ERR_CANT_WRITE
Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0.
UPLOAD_ERR_EXTENSION
Value: 8; A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help. Introduced in PHP 5.2.0.
출처 : http://www.php.net/manual/en/features.file-upload.errors.php
'내가 자꾸 까먹어서 쓰는 개발 이야기 > PHP' 카테고리의 다른 글
PHP에서 초(seconds)를 시간으로 표기할때 유용한 gmdate() 함수 (0) | 2013.05.15 |
---|---|
PHP date() 함수에서 월~일 순으로 요일 구하기 (0) | 2013.04.30 |
원격지 파일 체크하기 (0) | 2012.07.03 |
XE에서 쿼리 직접 사용하기 (0) | 2011.11.22 |
XE 외부 프로그램에서 세션 사용하기 (0) | 2011.11.11 |
최근댓글