=== up.htm ===
<form action="upload.php" method="post" enctype="multipart/form-data">
<table>
<tr>
<td><input type="file" name="update_image"><input type="submit" value="전송"></td>
</tr>
</table>
</form>
=== upload.php ===
<?
print_r($_FILES);
?>
위와 같이 아주 단순 test 파일 입니다.
실행을 하니;;;
Array ( [update_image] => Array ( [name] => 15-4.jpg [type] => [tmp_name] => [error] => 6 [size] => 0 ) )
이렇게 나옴;;;
error 6번은 임시폴더가 없다는 뜻이였어나,
서버의 /tmp 디렉토리는 존재했어며, php.ini 파일 안에도 /tmp로 정의 했었는데도 계속 에러가 났었음.
/tmp 디렉토리의 파일 갯수가 너무 많아서 수행을 못하는 경우도 있네요;;
[root@localhost tmp] rm -f *
/tmp 방 파일을 정리하니 이상 없이 수행이 됐습니다.