첨부파일에 이미지를 첨부하면 아래그림과같이나오네요...ㅠ.ㅠ
로컬테스트환경에서는 잘나옵니다만...
서버에만올리면 그러네요...
Copy
<td> <? if ($view[file][0][file]) {?><a href=# <?php echo "onMouseOver=\"chgImg( '".$image[0]."','".$image[0]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[0]?>" width="120" height="50" align="absmiddle" border="0"></a><? }?> </td> <td> <? if ($view[file][1][file]) {?><a href=# <? echo "onMouseOver=\"chgImg( '".$image[1]."','".$image[1]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[1]?>" width="120" height="50" align="absmiddle" border="0"></a><? }?> </td> <td> <? if ($view[file][2][file]) {?><a href=# <? echo "onMouseOver=\"chgImg( '".$image[2]."','".$image[2]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[2]?>" width="120" height="50" align="absmiddle" border="0"></a><? }?> </td> <td> <? if ($view[file][3][file]) {?><a href=# <? echo "onMouseOver=\"chgImg( '".$image[3]."','".$image[3]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[3]?>" width="120" height="50" align="absmiddle" border="0"></a><? }?> </td> <td> <? if ($view[file][4][file]) {?><a href=# <? echo "onMouseOver=\"chgImg( '".$image[4]."','".$image[4]."','".ereg_replace("(\r\n|\n|\r)", "<br>", strip_tags($content) )."' );\"" ?>> <img src="<?=$image[4]?>" width="117" height="50" align="absmiddle" border="0"></a><? }?> </td>
|
답변 2개 / 댓글 1개
채택된 답변
+20 포인트
서버 php 설정상의 문제로 보입니다.
<?
=>
<?php
로 전체 교체
<?=
=>
<?php echo 로 전체 교체 하면 될 것 같습니다.
답변에 대한 댓글 1개
9년 전
9년 전
ini_set('short_open_tag','on');
답변을 작성하려면 로그인이 필요합니다.
덕분에 해결했습니다.
좋은저녁 되세요~~