테스트 사이트 - 개발 중인 베타 버전입니다

해피정님의 뷰화면에서 갤러리 보여주는 기능의 게시판에서 채택완료

동글이 11년 전 조회 6,241
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.



오류 주소 :



해피정님의 게시판은 그누4 게시판입니다.

<a href="http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=135459" target="_blank" rel="noopener noreferrer">http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=135459</a>



그누5를 사용하고 있는지라

파일 내용중에 주소를 변경하고 적용을 해봤습니다.



그랬더니

Warning: rename() [function.rename]: Unable to locate stream wrapper in /web/home/dream/html/skin/board/test/resize_image.php on line 35



Warning: rename() [function.rename]: Unable to locate stream wrapper in /web/home/dream/html/skin/board/test/resize_image.php on line 56



이런 메세지가 뜹니다. 해피정님 말씀으론 함수가 중복되어서 그렇다는데...



resize_image.php 파일 내용중에 아래와 같은 부분에서 warning이 발생했습니다.

어디서부터 접근을 해야할 지 감잡을 수 없네요.

방법이라도 제시해 주십시오.

테스트 주소는 <a href="http://3dmshop.com/bbs/board.php?bo_table=ct_test2&wr_id=1" target="_blank" rel="noopener noreferrer">http://3dmshop.com/bbs/board.php?bo_table=ct_test2&wr_id=1</a>

입니다.





&nbsp; rename($img, $img_old);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <------------------35번째 줄



&nbsp; switch($z) {

&nbsp; &nbsp; case(1) :

&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromGif')) {

&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromGif($img_old);

&nbsp; }

&nbsp; &nbsp; break;

&nbsp; &nbsp; case(2) :

&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromJpeg')) {

&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromJpeg($img_old);

&nbsp; }

&nbsp; &nbsp; break;

&nbsp; &nbsp; case(3) :

&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromPng')) {

&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromPng($img_old);

&nbsp; }

&nbsp; &nbsp; break;

&nbsp; }



&nbsp; if(!$src_img) {

&nbsp; &nbsp; rename( $img_old, $img);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; < --------------------- 56번째 줄

&nbsp; &nbsp; unset($src_img);

&nbsp; &nbsp; return;

&nbsp; }





댓글을 작성하려면 로그인이 필요합니다.

답변 3개

채택된 답변
+20 포인트
11년 전
rename 앞에 @를 넣어보세요. @rename ...
로그인 후 평가할 수 있습니다

답변에 대한 댓글 3개

동글이
11년 전
감사합니다. wraning부분은 없어졌습니다..
이제 썸네일 부분만 손보면 되겠네요.. 정말 감사합니다.
완료가 되면 공개하도록 하겠습니다.
동글이
11년 전
Notice 는 배열에서 ' '를 해주니 다 없어지네요.
이젠 동작만 하면 되는데.... ;;
동글이
11년 전
다른 문제가 생겼습니다. 이미지 출력은 되는데 아무 동작을 하지 않아.
error_reporting(E_ALL);
ini_set("display_errors", 1);
를 이용해 에러를 출력해 봤는데요.
아래와 같은 메세지가 뜨네요.

Notice: Use of undefined constant file - assumed 'file' in /web/home/dream/html/skin/board/test/view_img_contents.php on line 18
Notice: Use of undefined constant count - assumed 'count' in /web/home/dream/html/skin/board/test/view_img_contents.php on line 18

view_img_contents.php에서 18줄은
$thumbNum=$view[file][count];
이것이거던요..
그누5에서는 불러오는 방식이 다른 것인가요?
동글이
11년 전
Notice 는 배열에서 ' '를 해주니 다 없어지네요.
이젠 동작만 하면 되는데.... ;;

댓글을 작성하려면 로그인이 필요합니다.

anjfqhwl
6년 전

잘봤습니다 궁금한점이 해결되었습니다

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

동글이
11년 전
썸네일까지 처리를 했는데... 아궁... 갤러리가 넘어가지가 않네요.. ㅎㅎ

또 확인을 해야겠네요..
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인