갑자기 Warning: move_uploaded_file 메시지와 함께 파일 첨부 에러가 뜹니다. 도와주세요 -_-
한창 바쁠시기인데 정말 난감하게 오류가 생겼습니다. 도와주세요;;
일단 코드는 수정한곳이 없습니다. 서버쪽에서 별도로 홈페이지쪽에 수정한곳이 없다고 하구요
글쓰기는 되는데 파일 업로드만 에러가 발생합니다. (data 쪽 폴더 권한은 777)입니다.
[파일 첨부하고 글쓸경우 - > 발생 에러코드]
-------------------------------------------------------------------------------------------
Warning: move_uploaded_file(../data/file/information01/1935646331_9d6d7f34_Interop.MSExchangeLib.dll) [function.move-uploaded-file]: failed to open stream: No such file or directory in /export/home/nursing/www/gnu/bbs/write_update.php on line 194
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/php0JaWzZ' to '../data/file/information01/1935646331_9d6d7f34_Interop.MSExchangeLib.dll' in /export/home/nursing/www/gnu/bbs/write_update.php on line 194
--------------------------------------------------------------------------------------------
data 쪽 폴더 권한은 777이구요,
혹시 몰라서 간단한 업로드 소스코드를 돌려봤는데 첨부가 됬습니다.
[upload.htm]
-------------------------------------------------------------------------------
<form method="post" enctype="multipart/form-data" action="upload.php">
<input name="up" type="file" /><input type="submit" value="OK" />
</form>
--------------------------------------------------------------------------------
[upload.php]
--------------------------------------------------------------------------------
<?php
error_reporting(E_ALL);
echo '<xmp>';
echo '* Upload Info'."\n";
print_r($_FILES);
move_uploaded_file($_FILES['up']['tmp_name'],'./upload/'.$_FILES['up']['name']);
echo '* Upload File(s)'."\n";
$dh = opendir('./upload/');
while ( ($read=readdir($dh))!==false )
{
if ( $read[0]=='.' ) continue;
echo $read."\n";
}
closedir($dh);
echo '</xmp>';
?>
-----------------------------------------------------------------------------------------
그누보드 게시판만 파일 첨부가 안되는데 원인을 알 수가 없네요 ;;;
원인은 둘째 치고 수정을 해야하는데 위소스를 그누보드에 적용이 가능할까요??
일단 코드는 수정한곳이 없습니다. 서버쪽에서 별도로 홈페이지쪽에 수정한곳이 없다고 하구요
글쓰기는 되는데 파일 업로드만 에러가 발생합니다. (data 쪽 폴더 권한은 777)입니다.
[파일 첨부하고 글쓸경우 - > 발생 에러코드]
-------------------------------------------------------------------------------------------
Warning: move_uploaded_file(../data/file/information01/1935646331_9d6d7f34_Interop.MSExchangeLib.dll) [function.move-uploaded-file]: failed to open stream: No such file or directory in /export/home/nursing/www/gnu/bbs/write_update.php on line 194
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/php0JaWzZ' to '../data/file/information01/1935646331_9d6d7f34_Interop.MSExchangeLib.dll' in /export/home/nursing/www/gnu/bbs/write_update.php on line 194
--------------------------------------------------------------------------------------------
data 쪽 폴더 권한은 777이구요,
혹시 몰라서 간단한 업로드 소스코드를 돌려봤는데 첨부가 됬습니다.
[upload.htm]
-------------------------------------------------------------------------------
<form method="post" enctype="multipart/form-data" action="upload.php">
<input name="up" type="file" /><input type="submit" value="OK" />
</form>
--------------------------------------------------------------------------------
[upload.php]
--------------------------------------------------------------------------------
<?php
error_reporting(E_ALL);
echo '<xmp>';
echo '* Upload Info'."\n";
print_r($_FILES);
move_uploaded_file($_FILES['up']['tmp_name'],'./upload/'.$_FILES['up']['name']);
echo '* Upload File(s)'."\n";
$dh = opendir('./upload/');
while ( ($read=readdir($dh))!==false )
{
if ( $read[0]=='.' ) continue;
echo $read."\n";
}
closedir($dh);
echo '</xmp>';
?>
-----------------------------------------------------------------------------------------
그누보드 게시판만 파일 첨부가 안되는데 원인을 알 수가 없네요 ;;;
원인은 둘째 치고 수정을 해야하는데 위소스를 그누보드에 적용이 가능할까요??
댓글 1개
14년 전
전에 용량이 꽉 차서 비슷한 증상이 생겼던 적이 있는데... 혹시 모르니까 그쪽도 함 체크해보세요;;
게시판 목록
그누4 질문답변
그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.
기존 게시물은 열람만 가능합니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 66534 | 11년 전 | 3859 | ||
| 66533 |
다이아레빗
|
11년 전 | 2762 | |
| 66532 | 11년 전 | 2732 | ||
| 66531 |
alexseo
|
11년 전 | 2947 | |
| 66530 | 11년 전 | 6222 | ||
| 66529 | 11년 전 | 3247 | ||
| 66528 |
alexseo
|
11년 전 | 3330 | |
| 66527 | 11년 전 | 2894 | ||
| 66526 | 11년 전 | 3212 | ||
| 66525 |
lsj9894
|
11년 전 | 2764 | |
| 66524 |
webart
|
11년 전 | 3807 | |
| 66523 |
열라뽕똬이
|
11년 전 | 2711 | |
| 66522 | 11년 전 | 5199 | ||
| 66521 |
xargs
|
11년 전 | 2792 | |
| 66520 | 11년 전 | 2440 | ||
| 66519 | 11년 전 | 3399 | ||
| 66518 | 11년 전 | 2654 | ||
| 66517 | 11년 전 | 3604 | ||
| 66516 | 11년 전 | 5840 | ||
| 66515 | 11년 전 | 4636 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기