적수님과 여러선배님들 그간 별고없으셨는지여?
후배가 다시 이미지란 눔땜에 난관에 부딨쳐 삼가 글을 올립니다..
제발 그냥 지나치지 마시고 한마디라도 조언을 부탁드립니다. 꾸벅
현재 시간이 4시가 넘었지만 후배는 이문제 땜에 집에도 못가구 있습니다.
특별히 잘못쓴 변수도 없는데...우째
<?
require "../lib/common.inc";
if($mode==insert) {
$filename ="./imsi/".$user_file_name;
$thumbname="./imsi/thumb_".$user_file_name;
exec("convert JPG $user_file_name");
$size = GetImageSize($user_file);
$width = $size[0];
$height = $size[1];
if ($width < 50 || $height <50) {
echo( "<script>window.alert('');
history.go(-1);</script>");
exit;
}
copy($user_file, $filename);
unlink($user_file);
exec("convert -scale 80x80 $filename $thumbname");
$thumb_image = addslashes(fread(fopen($thumbname, "r"), filesize($thumbname)));
$imageblob = addslashes(fread(fopen($filename, "r"), filesize($filename)));
$comment = nl2br($comment);
$comment = addslashes($comment);
$dbconn=db_connect("image");
$SQL = "INSERT INTO album (no,album_name,title,comment,email,imageblob,thumb_image,check)
VALUES ('0','$album_name', '$title','$comment','$email','$imageblob','$thumb_image','$check')";
$ins = mysql_query( $SQL, $dbconn );
if( !$ins ) {
echo ("$SQL"); exit;
}
echo ("<meta http-equiv='Refresh' content='0; URL=./album_list.html?album=$album_name'>");
}
?>
이게 코딩이구여...에러는
Warning: Unable to create './imsi/hyori8.jpg': 허가 거부됨 in /insert.php3 on line 30
Warning: fopen("./imsi/thumb_hyori8.jpg","r") - 허가 거부됨 in /insert.php3 on line 35
Warning: Unable to find file identifier 0 in /insert.php3 on line 35
Warning: fopen("./imsi/hyori8.jpg","r") - 허가 거부됨 in /insert.php3 on line 36
Warning: Unable to find file identifier 0 in /insert.php3 on line 36
INSERT INTO album (no,album_name,title,comment,email,imageblob,thumb_image,check)
VALUES ('0','18', 'aaa','aaa','huk at huk.huk','','','n')
이렇게 나거든여...
자기 컴에있는 이미지 화일을 자료실 같은데 등록시키는 부분이고여
이미지 매직을