Top

[php] ´Ù¸¥¼­¹ö filesize ÃßÃâÇϱâ | Web-Programing
±è°æÈÆ (admin) | Editor | 2019/12/23 11:46:25 | Á¶È¸:3326

°£´ÜÇÏ°Ô ÇÔ¼ö ¸¸µé¾î¼­ »ç¿ëÇÏ¸é µÈ´Ù.


function getSizeFile($url) {

if (substr($url,0,4)=='http') {


$x = array_change_key_case(get_headers($url, 1),CASE_LOWER);


if ( strcasecmp($x[0], 'HTTP/1.1 200 OK') != 0 ) { 

$x = $x['content-length'][1]; 

} else { 

$x = $x['content-length']; 

}

} else { 

$x = @filesize($url); 

}


return $x;

}

°øÀ¯Çϱâ
°øÀ¯Çϱâ
0
0
0


´ñ±ÛÀ» ºÒ·¯¿À´Â ÁßÀÔ´Ï´Ù.
¡ã ÀÌÀü±Û ÅؽºÆ® ÀÔ·Ââ ´Ù·ç±â ±è°æÈÆ (admin) 2021-06-10 14:07:30
¡å ´ÙÀ½±Û [HTML][JAVASCRIPT] Æû Àü¼ÛµÈ ÇÑ±Û ¹®ÀÚ¿­ÀÌ ±úÁú ¶§ ±è°æÈÆ (admin) 2019-08-22 18:11:50