윤

자동등록방지 이미지 엑박 뜨네요...

오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.

오류 주소 : http://www.soj.co.nz/bbs/board.php?bo_table=ask&wr_id=71

검색해보니 gd가 깔려있어야 한다고 하시든데..

gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

요게 phpinfo에서 긁어온거구요.
깔려있는 것 같은데...
뭐가 문제인지 모르겠네요..
도와주세요~@.@

댓글 2개

norobot_image.php 파일 내용:

<?
include_once("./_common.php");

function echo_check_image($str, $width, $height, $background_color, $text_color, $grid_color)
{
$number = $str;

$background_color = str_replace("#", "", $background_color);
$text_color = str_replace("#", "", $text_color);
$grid_color = str_replace("#", "", $grid_color);

// WebColor -> RGB
$BR = hexdec(substr($background_color, 0, 2));
$BG = hexdec(substr($background_color, 2, 2));
$BB = hexdec(substr($background_color, 4, 2));

$TR = hexdec(substr($text_color, 0, 2));
$TG = hexdec(substr($text_color, 2, 2));
$TB = hexdec(substr($text_color, 4, 2));

$GR = hexdec(substr($grid_color, 0, 2));
$GG = hexdec(substr($grid_color, 2, 2));
$GB = hexdec(substr($grid_color, 4, 2));

$im = @imagecreate($width, $height) or die("Cannot Initialize new GD image stream");
header ("Content-type: image/png");

$background_color = imagecolorallocate($im, $BR, $BG, $BB);
$text_color = imagecolorallocate($im, $TR, $TG, $TB);
$grid_color = imagecolorallocate($im, $GR, $GG, $GB);


image_random_grid($im, $width, $height, 5, $grid_color);
imagestring($im, rand(4,6), rand(5,15), rand(1,3), $number, $text_color);
imagepng($im);
imagedestroy($im);
}

function image_random_grid($im, $w, $h, $s, $color)
{
for($i=1; $i<$w/$s; $i++) {
$tmp = rand($s-$s/3, $s+$s/3);
imageline($im, $i*$tmp, 0, $i*$tmp, $h, $color);
}

for($i=1; $i<$h/$s; $i++) {
$tmp = rand($s-$s/3, $s+$s/3);
imageline($im, 0, $i*$tmp, $w, $i*$tmp, $color);
}
}

//echo_check_image(rand(4,6), 65, 20, "#FF33CC", "#FFFFFF", "#FF79DE");
echo_check_image($_SESSION['ss_norobot_key'], 80, 19, "#FF33CC", "#FFFFFF", "#FF79DE");
?>
댓글을 작성하시려면 로그인이 필요합니다.

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
08-10-14 조회 835
08-10-14 조회 898
08-10-14 조회 817
08-10-14 조회 967
08-10-14 조회 1,316
08-10-14 조회 1,631
08-10-14 조회 1,622
08-10-14 조회 899
08-10-14 조회 927
08-10-14 조회 2,032
08-10-14 조회 1,718
08-10-14 조회 850
08-10-14 조회 853
08-10-14 조회 820
08-10-14 조회 835
08-10-13 조회 911
08-10-13 조회 863
08-10-13 조회 874
08-10-13 조회 988
08-10-13 조회 1,660