2004/05/19 21:52:38     3014   
   PHP ¿¡¼­ 10 ¸Þ°¡ ÆÄÀÏ ¿Ã¸®¸é ¸Þ¸ð¸®µµ 10 ¸Þ°¡ Àâ¾Æ¸Ô½À´Ï±î? ¼³¸¶.. Çϴµ¥... [2]
PHP ¿¡¼­ 10 ¸Þ°¡ ÆÄÀÏ ¿Ã¸®¸é ¸Þ¸ð¸®µµ 10 ¸Þ°¡ Àâ¾Æ¸Ô½À´Ï±î? ¼³¸¶.. Çϴµ¥...

¾Æ·¡ ¼Ò½º´Â Á¤»ó ÀÛµ¿ÇÏ´Â ÆÄÀÏ ¿ë·® Á¦ÇÑ °É°í üũÇÏ¿© alert ¶ç¿ì´Â ºÎºÐÀÔ´Ï´Ù.

´Ù¸¸, php_ini ¼³Á¤¿¡ upload_max_size 10 M ¶ó°í µÇ¾î Àִµ¥,
¸Þ¸ð¸® »çÀÌÁîµµ 10 M ¶ó°í Á¦ÇѵǾî ÀÖ½À´Ï´Ù.
¹öÀü 4.3.0 À̱¸¿ä.

Á¦°¡ ¿î¿µÇÏ´Â ¼­¹ö°¡ ¾Æ´Ï¶ó À¥È£½ºÆà ¼­¹öÀ̱⠶§¹®¿¡ Á¦ ¸¾µ¥·Î º¯°æÀº ¸øÇÏ°í.

Á¦ ¹®Á¦°¡ ¹¹³Ä¸é........

7~8 ¸Þ°¡ Â¥¸® ÆÄÀÏÀ» ¿Ã¸®¸é¼­ Á¦ÇÑÀ» 5¸Þ°¡·Î °É¸é
Á¤»óÀûÀ¸·Î alert ¶ç¿ó´Ï´Ù.

±×·¯³ª 9~10 ¸Þ°¡Â¥¸® ÆÄÀÏ ¿Ã¸®¸é, ¾Æ¹«·± ¸Þ½ÃÁö°¡ ¾ø½À´Ï´Ù.
¶ÇÇÑ ÆÄÀÏ ¿Ü¿¡ ´Ù¸¥ º¯¼ö°ªÀ» ¸ðµÎ ÃʱâÈ­.. Áï ¾Æ¹«°Íµµ ¾ø´Â °ÍÀ¸·Î
µË´Ï´Ù.

10 ¸Þ°¡ ÆÄÀÏ ¿Ã¸®¸é ¸Þ¸ð¸®µµ 10 ¸Þ°¡ Àâ¾Æ¸Ô½À´Ï±î? ¼³¸¶.. Çϴµ¥...
¿Ö ÀÌ·± Çö»óÀÌ »ý±â³ª¿ä? PHP ÀÇ ¹ö±×Àΰ¡¿ä?
¾Æ´Ï¸é Á¤¸»·Î ÆÄÀÏÀ» 10 ¸Þ°¡ ¿Ã¸®¸é ¸Þ¸ð¸®µµ 10 ¸Þ°¡¸¦ Àâ¾Æ ¸Ô´Â °ÇÁö......

¸¸¾à ¸Þ¸ð¸® 10 ¸Þ°¡ Àâ¾Æ ¸Ô°í ¸ðµç INPUT Ä­ÀÇ ÀÔ·Â ³»¿ë¹°À» ÃʱâÈ­ ½ÃÄÑ ¹ö¸°´Ù¸é
±× ´ëÃ¥¹ýÀº ¹«¾ùÀΰ¡¿ä?

Á¤¸» ±Ã±ÝÇÕ´Ï´Ù.

// ATTACHMENT(÷ºÎÆÄÀÏ) ÀÌ Á¸ÀçÇÏ´Â °æ¿ì º»¹® ó¸®. Áï, <INPUT TYPE='FILE' NAME='userfile[]'> ºÎºÐ ó¸®.

$fileexist=0;
$uploadMaxSize=intval(substr(ini_get(upload_max_filesize),0,-1)) * 1024 * 1024;
// get_cfg_var("upload_max_filesize"); ·Î ÇÒ ¼öµµ ÀÖÀ½.

$uploadMaxTime=get_cfg_var("max_execution_time");
$uploadMemory=get_cfg_var("memory_limit"); // memory_get_usage() ´Â 4.3.2 ¹öÀüºÎÅÍ »ç¿ë °¡´É.
for($arraddr=0;$arraddr<count($userfile);$arraddr++)        {
// 10 ¹øÁö Array ±îÁö ÀÖÀ¸¸é count ´Â 11°³À̴ϱî.
$fileNo=$arraddr+1; // 0¹øÁö+1 = 1¹ø° ÆÄÀÏ
        if($userfile[$arraddr]) $fileexist++;

        if($_FILES[userfile][error][$arraddr] == 2)        { // $userfile_size[$arraddr]
        echo ("        
        <SCRIPT LANGUAGE='JavaScript'>
        window.alert ('$userfile_size[$arraddr] : $fileNo ¹ø° ÆÄÀÏÀÌ ¿ë·® ÃÊ°ú Çß¾î, ¾ÃÅʱ¸¸®¾ß!');back();
        </SCRIPT> ");exit;                        }

        if($uploadMaxSize < $_FILES[userfile][size][$arraddr])        { // $userfile_size[$arraddr]
// $userfile_size ·Î ÇÏ¸é ¹«Á¶°Ç alert ¸Þ½ÃÁö ¶ç¿ò. $userfile_size[$arraddr]
        echo ("        
        <SCRIPT LANGUAGE='JavaScript'>
        window.alert ('$userfile_size[$arraddr] : $fileNo ¹ø° ÆÄÀÏÀÌ Á¦ÇÑ ¿ë·® º¸´Ù Å®´Ï´Ù. ÀÛÀº »çÀÌÁîÀÇ ÆÄÀϸ¸ ÷ºÎÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ À¥¼­¹ö Á¦ÇÑ ½Ã°£ $uploadMaxTime ÃÊ À̳»¿¡ ó¸®ÇÒ ¼ö ÀÖ´Â ¿ë·®À̾î¾ß ÇÕ´Ï´Ù. ¸Þ¸ð¸®´Â $uploadMemory ·Î Á¦ÇÑ µÇ¾î ÀÖ½À´Ï´Ù.');back();
        </SCRIPT> ");exit;                        }
                                                        }



writer ip : 61.37.63.233 , modify 61.37.63.233 , 2004/05/19 21:53:16    


211.111.3.65
2004/05/20 11:00:48
¾Æ´Õ´Ï´Ù. PHP ¼³Á¤ÀÇ memory_limit ¿Í upload_max_size ´Â ¹«°üÇÕ´Ï´Ù. ÀÏ·Ê·Î, COMPUZ.com À¥¼­¹öÀÇ PHP ¼³Á¤Áß memory_limit ´Â 8M ·Î, upload_max_size ´Â 10M ·Î ¼³Á¤ÇÑÈÄ 9~10MB ¿ë·®ÀÇ ÆÄÀÏÀ» ¾÷·ÎµåÇصµ ÀÌ»ó¾øÀÌ ¾÷·Îµå°¡ ÀÌ·ç¾îÁý´Ï´Ù. µû¶ó¼­ "PHP ¿¡¼­ 10 ¸Þ°¡ ÆÄÀÏ ¿Ã¸®¸é ¸Þ¸ð¸®µµ 10 ¸Þ°¡ Àâ¾Æ¸Ô½À´Ï±î?" ¶ó´Â Áú¹®ÀÇ ´ë´äÀº "NO" ÀÔ´Ï´Ù. ^^;; ±×·¯³ª À§¿¡ °í°´´Ô²²¼­ ¸»¾¸ÇØÁֽŠÇö»óÀº ÀúÈñµµ Á¤È®ÇÑ ¿øÀÎ ÆľÇÀÌ ¾ÈµÇ°í ÀÖ½À´Ï´Ù. ^^;; À§ ¼Ò½º°¡ ±¸¼ºµÇ¾îÀÖ´Â ½ºÅ©¸³Æ®¸¦ ¸»¾¸ÇØÁֽøé Çѹø ºÐ¼®Çغ¸µµ·Ï ÇÏ°Ú½À´Ï´Ù. ^^ °¨»çÇÕ´Ï´Ù.

Jair

84.127.192.130
2007/05/23 07:23:27
http://fff0cc7124917104f93bcdd10cdec9b5-t.yemine.info fff0cc7124917104f93bcdd10cdec9b5 [url]http://fff0cc7124917104f93bcdd10cdec9b5-b1.yemine.info[/url] [url=http://fff0cc7124917104f93bcdd10cdec9b5-b2.yemine.info]fff0cc7124917104f93bcdd10cdec9b5[/url] [u]http://fff0cc7124917104f93bcdd10cdec9b5-b3.yemine.info[/u] 71b2ac0d5e4dc2540512dbb597438bdc

      

       

22675 ´Ù½Ã Áú¹®µå·Á¿ä [1] »ç¾ß 08/28 1
22674 ¾È³çÇϼ¼¿ä ^^ [1] »ç¾ß 08/28 1
22673 ¾Æ·¡¿¬°üÇؼ­ ´Ù½Ã µµ¸ÞÀÎÁú¹® [1] UnKnown 08/26 2
22672 µµ¸ÞÀÎ °ü·Ã [1] UnKnown 08/25 2
22671 ȨÇÇ°¡ ¶ßÁú¾Ê³×¿ä [1] :P 08/25 2
22670 µµ¸ÞÀÎ ±â°£¿¬Àå [1] Á¤³­¼÷ 08/25 1
22669 ¼­ºñ½º¸¦ º¯°æÇÏ·Á Çϴµ¥¿ä? ¿ä±ÝÀÌ? [1] CPC 08/23 3085
22668 °èÁ¤ ¹é¾÷¿¡ ´ëÇÑ Áú¹®ÀÔ´Ï´Ù. [1] õÀºÁø 08/23 1
22667 MySql Á¢¼Ó ºñ¹Ð¹øÈ£ [1] bluerain 08/21 2
22666 ÂÊÁöº¸³»±â ¿¡·¯ ¿ÖÀϱî¿ä? [1] ¸ÚÀïÀÌ 08/21 6
22665 ÆäÀÌÁö¸¦ ãÀ» ¼ö ¾ø½À´Ï´Ù. [2] ÀÌÀº¼® 08/20 3
22664 À̹ø¿¡ Á¦°¡ ¿¬Àå½ÅûÀ» ÇÏ°Ô µÇ¸é... [1] ½Å¿µ¼ö 08/18 1
22663 ȨÆäÀÌÁö¿¡ ¾Ç¼ºÄڵ尡 ¶ß´Âµ¥¿ä.¤Ð [1] ¹ÎÆ®¢â 08/18 2
22662 Á¢¼ÓÀÌ ¾ÈµÇ³×¿ä.. [1] ¾ö¹Ì¼± 08/17 2768
22661 Æú´õ»èÁ¦¿äû [1] 08/16 1
FIRST105112113114115116117118125LAST