»Ë»Ñ Æ÷·³
°³¹ßÀÚÆ÷·³ ÀÔ´Ï´Ù.
  • ºÏ¸¶Å© ¾ÆÀÌÄÜ

php¿ÕÃʺ¸ÀÔ´Ï´Ù.. ±âÃÊ Áú¹® Çϳª µå¸³´Ï´Ù¤Ð¤Ð..4


¾È³çÇϼ¼¿ä À¥ÆÛºí¸®¼ÅÀε¥ php °øºÎµµ ÇÏ°í ÀÖ´Â ½ÅÀÔÀÔ´Ï´Ù.

test1.php ÆÄÀÏ¿¡ ÀÖ´Â Æû°ªÀ» test2.php À¸·Î Àü´ÞÇÏ´Â °úÁ¤Àä..
¹®Á¦°¡ test1.php¿¡ ÀÖ´Â input type="file" name="filename" id="filename">À¸·Î ¹ÞÀº ÆÄÀÏÀÇ ¿ë·®°ªÀ» ¹Þ°í½Í½À´Ï´Ù..
°¡±î½º·Î test1.php¿¡¼­ javascript·Î

         function getSize(){
                 var tableFileSize = document.getElementById('filename').files[0].size;
                 var result = Math.round(tableFileSize / 1024);
         }

À§ ÇÔ¼ö·Î result º¯¼ö¿¡ ÆÄÀÏ ¿ë·® °ªÀ» ³Ö´Âµ¥ ¼º°øÇߴµ¥.. ÀÌ result°ªÀ» ¾î¶»°Ô test2.php À¸·Î °ªÀ» Àü´ÞÇؼ­ Ãâ·Â½ÃųÁö ¸ð¸£°Ú½À´Ï´Ù..
À§ ¹æ¹ý ¸»°í..
php¿¡¼­ filesize ¶õ ÇÔ¼ö·Î ÆÄÀÏ¿ë·®À» ±¸ÇÒ¼öµµ ÀÖÀ» °Å °°Àºµ¥..
$file = $_POST['filename'];
echo filesize($file);
?>

ÀÌ·¸°Ô À§¿¡ ½áÁá´õ´Ï ¾È³ª¿À´õ¶ó±¸¿ä...
»ç¼öºÐ²² ¹°¾îºÁµµ ÀоôçÇÏ°í ¤Ð¤Ð.. È­³ªº¸À̼ż­ µµÀúÈ÷ ¸ø¹°¾îº¸°Ú½À´Ï´Ù...»ì·ÁÁÖ¼¼¿ä...¤Ð¤Ð

0
ÃßõÇϱ⠴ٸ¥ÀÇ°ß 0
|
°øÀ¯¹öÆ°

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÃÖµµ·É

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 ÃÖµµ·É

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 º£º£º£º£º£

´Ù¸¥ÀÇ°ß 0 Ãßõ 0 À̳ðÀǼöÅ°
  • ¾Ë¸² ¿å¼³, »óó ÁÙ ¼ö ÀÖ´Â ¾ÇÇÃÀº »ï°¡ÁÖ¼¼¿ä.
©¹æ »çÁø  
¡â ÀÌÀü±Û¡ä ´ÙÀ½±Û ¸ñ·Ïº¸±â