해피정님의 뷰화면에서 갤러리 보여주는 기능의 게시판에서 채택완료
동글이
11년 전
조회 6,239
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.<br />
<br />
오류 주소 : <br />
<br />
해피정님의 게시판은 그누4 게시판입니다.<br />
<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><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&wr_id=1" target="_blank" rel="noopener noreferrer">http://3dmshop.com/bbs/board.php?bo_table=ct_test2&wr_id=1</a><br />
입니다.<br />
<br />
<br />
&nbsp; rename($img, $img_old);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <------------------35번째 줄<br />
<br />
&nbsp; switch($z) {<br />
&nbsp; &nbsp; case(1) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromGif')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromGif($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; case(2) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromJpeg')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromJpeg($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; case(3) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromPng')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromPng($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; }<br />
<br />
&nbsp; if(!$src_img) {<br />
&nbsp; &nbsp; rename( $img_old, $img);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; < --------------------- 56번째 줄<br />
&nbsp; &nbsp; unset($src_img);<br />
&nbsp; &nbsp; return; <br />
&nbsp; }<br />
<br />
<br />
<br />
오류 주소 : <br />
<br />
해피정님의 게시판은 그누4 게시판입니다.<br />
<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><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&wr_id=1" target="_blank" rel="noopener noreferrer">http://3dmshop.com/bbs/board.php?bo_table=ct_test2&wr_id=1</a><br />
입니다.<br />
<br />
<br />
&nbsp; rename($img, $img_old);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <------------------35번째 줄<br />
<br />
&nbsp; switch($z) {<br />
&nbsp; &nbsp; case(1) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromGif')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromGif($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; case(2) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromJpeg')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromJpeg($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; &nbsp; case(3) :<br />
&nbsp; &nbsp; &nbsp; if(function_exists('ImageCreateFromPng')) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; $src_img = ImageCreateFromPng($img_old);<br />
&nbsp; }<br />
&nbsp; &nbsp; break;<br />
&nbsp; }<br />
<br />
&nbsp; if(!$src_img) {<br />
&nbsp; &nbsp; rename( $img_old, $img);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; < --------------------- 56번째 줄<br />
&nbsp; &nbsp; unset($src_img);<br />
&nbsp; &nbsp; return; <br />
&nbsp; }<br />
<br />
<br />
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
답변에 대한 댓글 3개
�
동글이
11년 전
�
동글이
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에서는 불러오는 방식이 다른 것인가요?
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 는 배열에서 ' '를 해주니 다 없어지네요.
이젠 동작만 하면 되는데.... ;;
이젠 동작만 하면 되는데.... ;;
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
이제 썸네일 부분만 손보면 되겠네요.. 정말 감사합니다.
완료가 되면 공개하도록 하겠습니다.