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

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

동글이 11년 전 조회 6,239
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.<br />
<br />
오류 주소 : <br />
<br />
해피정님의 게시판은 그누4 게시판입니다.<br />
<a href="http://sir.co.kr/bbs/board.php?bo_table=g4_skin&amp;wr_id=135459" target="_blank" rel="noopener noreferrer">http://sir.co.kr/bbs/board.php?bo_table=g4_skin&amp;wr_id=135459</a><br />
<br />
그누5를 사용하고 있는지라<br />
파일 내용중에 주소를 변경하고 적용을 해봤습니다.<br />
<br />
그랬더니<br />
Warning: rename() [function.rename]: Unable to locate stream wrapper in /web/home/dream/html/skin/board/test/resize_image.php on line 35<br />
<br />
Warning: rename() [function.rename]: Unable to locate stream wrapper in /web/home/dream/html/skin/board/test/resize_image.php on line 56<br />
<br />
이런 메세지가 뜹니다. 해피정님 말씀으론 함수가 중복되어서 그렇다는데...<br />
<br />
resize_image.php 파일 내용중에 아래와 같은 부분에서 warning이 발생했습니다.<br />
어디서부터 접근을 해야할 지 감잡을 수 없네요.<br />
방법이라도 제시해 주십시오.<br />
테스트 주소는 <a href="http://3dmshop.com/bbs/board.php?bo_table=ct_test2&amp;wr_id=1" target="_blank" rel="noopener noreferrer">http://3dmshop.com/bbs/board.php?bo_table=ct_test2&amp;wr_id=1</a><br />
입니다.<br />
<br />
<br />
&amp;nbsp; rename($img, $img_old);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;------------------35번째 줄<br />
<br />
&amp;nbsp; switch($z) {<br />
&amp;nbsp; &amp;nbsp; case(1) :<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(function_exists(&#039;ImageCreateFromGif&#039;)) {<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $src_img = ImageCreateFromGif($img_old);<br />
&amp;nbsp; }<br />
&amp;nbsp; &amp;nbsp; break;<br />
&amp;nbsp; &amp;nbsp; case(2) :<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(function_exists(&#039;ImageCreateFromJpeg&#039;)) {<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $src_img = ImageCreateFromJpeg($img_old);<br />
&amp;nbsp; }<br />
&amp;nbsp; &amp;nbsp; break;<br />
&amp;nbsp; &amp;nbsp; case(3) :<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; if(function_exists(&#039;ImageCreateFromPng&#039;)) {<br />
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $src_img = ImageCreateFromPng($img_old);<br />
&amp;nbsp; }<br />
&amp;nbsp; &amp;nbsp; break;<br />
&amp;nbsp; }<br />
<br />
&amp;nbsp; if(!$src_img) {<br />
&amp;nbsp; &amp;nbsp; rename( $img_old, $img);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt; --------------------- 56번째 줄<br />
&amp;nbsp; &amp;nbsp; unset($src_img);<br />
&amp;nbsp; &amp;nbsp; return; <br />
&amp;nbsp; }<br />
<br />
<br />
댓글을 작성하려면 로그인이 필요합니다.

답변 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년 전
썸네일까지 처리를 했는데... 아궁... 갤러리가 넘어가지가 않네요.. ㅎㅎ<br />
또 확인을 해야겠네요..
로그인 후 평가할 수 있습니다

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

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

로그인