지금 회원아이콘을 첨부파일을 눌러 이미지를 클릭하면
<?
$mb_dir = substr($mb[mb_id],0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb[mb_id].gif";
if (file_exists($icon_file)) {
echo "<br><img src='$icon_file' align=absmiddle><br>";
echo " <input type=checkbox name='del_mb_icon' value='1' class='csscheck'>삭제";
}
?>
위 코딩으로인해 첨부된 이미지가 나오게됩니다
이미지는 나오지않고 해당 첨부파일 경로만나와서 클릭하면 다운받을수있게 할수는 없을까요?
<?
$mb_dir = substr($mb[mb_id],0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb[mb_id].gif";
if (file_exists($icon_file)) {
echo "<br><img src='$icon_file' align=absmiddle><br>";
echo " <input type=checkbox name='del_mb_icon' value='1' class='csscheck'>삭제";
}
?>
위 코딩으로인해 첨부된 이미지가 나오게됩니다
이미지는 나오지않고 해당 첨부파일 경로만나와서 클릭하면 다운받을수있게 할수는 없을까요?
댓글 6개
<?
$mb_dir = substr($mb[mb_id],0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb[mb_id].gif";
$icon_file2 = "http://자기홈주소/data/member/$mb_dir/$mb[mb_id].gif";
if (file_exists($icon_file)) {
echo "<br><a href='icon_file2'>{$icon_file2}</a>";
echo " <input type=checkbox name='del_mb_icon' value='1' class='csscheck'>삭제";
}
?>
아마 파일 존재유무는 상대경로로만 되는걸로 알고 있어서 위와 같이 수정 하였습니다.
$mb_dir = substr($mb[mb_id],0,2);
$icon_file = "$g4[path]/data/member/$mb_dir/$mb[mb_id].gif";
$icon_file2 = "http://자기홈주소/data/member/$mb_dir/$mb[mb_id].gif";
if (file_exists($icon_file)) {
echo "<br><a href='icon_file2'>{$icon_file2}</a>";
echo " <input type=checkbox name='del_mb_icon' value='1' class='csscheck'>삭제";
}
?>
아마 파일 존재유무는 상대경로로만 되는걸로 알고 있어서 위와 같이 수정 하였습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기