2003/04/30 15:57:08     519   
   [re] ±×·³ ·£´ý À̹ÌÁö¸¦ »ç¿ëÇÏ·Á¸é..
¹Ý°©½À´Ï´Ù. COMPUZ.com °ü¸®ÀÚÀÔ´Ï´Ù.

>
>jpg ³ª png µîÀ¸·Î ·£´ý.. »ç¿ëÇÏ·Á¸é ¾î¶»°Ô ÇؾßÇÏÁÒ? [»ßÁú
>
>php ¿¡ °üÇؼ­ ¾Æ´Â°Ô ÀüÇô ¾ø¾î¿ä..;
>¾î¶»°Ô ¹æ¹ýÀÌ ¾øÀ»±î¿ä? ..;

¾Õ ±Û¿¡ Àû¾îÁֽŠNZEO °Ô½ÃÆÇÀÇ ±Û¿¡ º¸¸é ¾Æ·¡¿Í °°Àº ÄÚ¸àÆ®°¡ ´Þ·Á Àֳ׿ä..  ^^;
±× ¹æ¹ýÀ» »ç¿ëÇÏ½Ã¸é µÉ°Í °°½À´Ï´Ù.

=====================================================================================
gd »ç¿ëÇÏ½Ç ÇÊ¿ä±îÁö´Â ¾ø½À´Ï´Ù;
±×³É header·Î ³Ñ±â°Å³ª fopen/read ÄÞº¸·Î Àо img/gif Çì´õ »Ñ·ÁÁֽðí ÆÄÀϳ»¿ë »Ñ·ÁÁֽô°ÍÀÌ ´õ ºü¸¨´Ï´Ù;
¾Ö´Ï gif ¹®Á¦µµ ÇØ°áµÇÁö¿ä;

<?
//////////////////////////////
//Created by TheMics
//2003.03.14
//¼Ò½ºÀÇ »ç¿ëÀº 100% ÀÚÀ¯ÀÔ´Ï´Ù.
//////////////////////////////


//±×¸² Çì´õ
header("Content-type: image/gif");

//¼­¸í µð·ºÅ丮ÀÔ´Ï´Ù. À̰͸¸ °íÃÄÁÖ¼¼¿ä.
$dir = "sign";

$od = opendir($dir);

//±×¸²ÆÄÀÏÀÌ ÀÖ´ÂÁö È®ÀÎÇؼ­ º¯¼ö¿¡ ÀúÀå.
//gifÆÄÀϸ¸ Àû¿ëµË´Ï´Ù.

while($file = readdir($od)) {
if(eregi(".gif",$file)) $files[] = $file;
}

//ÆÄÀϼö ±¸ÇÔ
$total = sizeof($files);

if($total == 1) {
//ÆÄÀÏÀÌ Çϳª»ÓÀÏ ¶§-_-;
$no = 0;
} elseif($total) {
//·£´ýÀ¸·Î °ª »Ì±â
//mt_rand ÇѼö³ª rand ÇÔ¼ö³ª ÀÔ¸À´ë·Î °ñ¶ó¾²¼¼¿ä;

//mt_srand((double)microtime() * 1000);
//$no = mt_rand(0,$total - 1);

$no = rand(0,$total - 1);
} else {
//ÆÄÀÏÀÌ Çϳªµµ ¾øÀ»¶§-_-++
exit;
}

$fp = fopen("$dir/$files[$no]", "rb");
$img = fread($fp, filesize("$dir/$files[$no]"));
fclode($fp);

echo $img;

?>

´ëÃæ ¼öÁ¤ÇغýÀ´Ï´Ù;
gdº¸´Ü ÈξÀ ºü¸£ÁÒ;; (¹¹ »¡¶óºÃÀÚ 0.00xÃÊ ´ÜÀ§°ÚÁö¸¸..)

±×¸®°í GD°¡ GIF¸¦ Áö¿øÇÏ°Ô Çϴ°ÍÀº ±¸¹öÀü GDÀ̰ųª GIFÆÐÄ¡¸¦ ¸ÔÀÎ GD¶õ°Ì´Ï´Ù;
Áï GIF¸¦ Áö¿øÇÏÁö ¾Ê´Â GD ¶óÀ̺귯¸®¸¦ °¡Áø ¼­¹öµµ »ó´çÇÏ´Ù´Â ¶æÀÔ´Ï´Ù;

=====================================================================================

°¨»çÇÕ´Ï´Ù.

     My Internet Space - COMPUZ.com
writer ip : 211.111.3.98    
      

       

20493 °èÁ¤¼­ºñ½º º¯°æ¿ä [1] À±¿µ¸ñ 03/22 680
20492 °èÁ¤¿¡ °ü·ÃµÈ Áú¹®ÀÔ´Ï´Ù. [1] ±èÈ«°æ 03/22 693
20491 ftpÁ¢¼Ó ÀÚü°¡ ¾È µË´Ï´Ù. (±Þ) [1] ±èÁؼö 03/22 1193
20490 °èÁ¤ ¿¬Àå½Åû ÀØ°íÀÖ¾ú½À´Ï´Ù [1] 03/21 819
20489 °èÁ¤ °ü·Ã Áú¹®ÀÌ¿ä.. [1] ±ÇÀç¼® 03/21 640
20488 [´Ù½Ã]»õ °Ô½ÃÆÇÀ» »ý¼ºÇÏ·Á°í Çϴµ¥ ¿¡·¯°¡ ³³... [2] Á¶º´Ãµ 03/21 5
20487 ÀÌÁ¦ Á»ÀÖÀ¸¸é °èÁ¤ÀÌ ¸¸·á°¡ µÇ´Âµ¥¿ä. [2] ÀÌÀ¯¸® 03/21 3
20486 µµ¸ÞÀÎ ¼ÂÆà ÇØÁÖ¼¼¿ä^^ [1] Á¤ÀºÁö 03/21 1
20485 Á¦·Îº¸µå ·Î±×ÀÎ ¾ÈµÇ°Åµç¿ä... [2] À±¼ºÀÚ 03/21 1
20484 ³×ÀÓ¼­¹ö º¯°æÇÏ·Á´Âµ¥;; [1] ÀÌÀºÁÖ 03/21 1
20483 ¿¬Àå ½ÅûÇÏ°í ½ÍÀºµ¥ ¸¸·áÀÏÀÌ ÇÏ·ç Áö³µ½À´Ï´Ù... [1] À̵¿±Ô 03/21 1
20482 »õ °Ô½ÃÆÇÀ» »ý¼ºÇÏ·Á°í Çϴµ¥ ¿¡·¯°¡ ³³´Ï´Ù. [1] Á¶º´Ãµ 03/21 1
20481 ¿ë·® °ü·ÃÇؼ­... [1] ÀÌ¾Æ 03/21 2
20480 ¼­ºñ½º º¯°æÀº »õ·Î¿î ±â°£ºÎÅÍ Àû¿ëµÇ³ª¿ä? [1] ·ùÇü¿ì 03/20 747
20478 µµ¸ÞÀÎ ¿¬Àå½Åû ¿Ï·á µÇ¾ú´Ù°í ³ª¿À´Âµ¥.. [1] ¾È³ç 03/20 634
FIRST249256257258259260261262269LAST