예를들어서 https://www.abc.com 홈페이지가 있다고 하면
<img src=".data/editor/12345.png"> 로 출력 할 경우에는 엑박이 안뜨고 잘나오는데
<img src="https://www.abc.com/data/editor/12345.png">로 출력 할때는 엑박이 뜹니다.
왜 이럴까요..?
답변 1개 / 댓글 3개
채택된 답변
+20 포인트
2020-04-06 (월) 13:22:54
<img src=".data/editor/12345.png">
이렇게 출력하지 마시고
<img src="<?php echo G5_DATA_URL."/editor/12345.png">
이렇게 출력 해보세요~
답변에 대한 댓글 3개
sinbi
2020-04-06 (월) 14:17:11
<img src="<?php echo G5_DATA_URL?>."/editor/12345.png">
cho개발
2020-04-06 (월) 14:21:49
제가 잘못적은거 같은데
<img src="./data/editor/12345.png">에서 이미지는 출력되는데
<img src="https://www.abc.com/data/editor/12345.png">로 출력할때 출력이 안됩니다.
그래서 다른사이트에서 절대주소로 가져오려고하니 안돼요.
<img src="./data/editor/12345.png">에서 이미지는 출력되는데
<img src="https://www.abc.com/data/editor/12345.png">로 출력할때 출력이 안됩니다.
그래서 다른사이트에서 절대주소로 가져오려고하니 안돼요.
cho개발
2020-04-06 (월) 14:28:52
아.. 제가 모르고 <img src="https://abc.com/data/editor/12345.png"> www를 빼고 적었네요..
답변을 작성하려면 로그인이 필요합니다.