Skip to content

php 설치시에 GD가 정상적으로 설치되었는지 확인하는 소스

MintState October 29, 2008 at 5:32 PM Views 16057

php 설치시에 GD가 정상적으로 설치되었는지 확인하는 소스
   

<? 
@Header("Content-type: image/png"); 
$img=ImageCreate(200,400); 
Imagecolorallocate($img,210,0,0); 
$img1=ImageCreate(100,300); 
Imagecolorallocate($img1,0,210,0); 
$img2=ImageCreate(300,500); 
Imagecolorallocate($img2,0,0,210); 
Imagepng($img); 
Imagepng($img1); 
Imagepng($img2); 
//ImageDestory($img); 
?>
Share X Facebook LINE QR code

0 comments

Be the first to comment.