/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function get_remote_file_size($url) {
$host = $parsed["host"];
if (!$fp) return false;
else {
");
");
");
$headers = "";
}
$return = false;
foreach ($arr_headers as $header) {
$s = "Content-Length: ";
break;
}
}
if ($return) {
$sz = "KB"; // Size In KB
if ($size > 1024) {
$sz = "MB"; // Size in MB
}
$return = "$size $sz";
}
return $return;
}
URL: http://www.weberdev.com/get_example-4610.html
Comments
 Subscribe to comments
                    Subscribe to comments
                
                