첨부파일 이미지에러....ㅠ.ㅠ
본문
첨부파일에 이미지를 첨부하면 아래그림과같이나오네요...ㅠ.ㅠ
로컬테스트환경에서는 잘나옵니다만...
서버에만올리면 그러네요...
<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
서버 php 설정상의 문제로 보입니다.
<?
=>
<?php
로 전체 교체
<?=
=>
<?php echo 로 전체 교체 하면 될 것 같습니다.
ini_set('short_open_tag','on');
답변을 작성하시기 전에 로그인 해주세요.