I was surprised PHP's filesize() fails on absolute paths?? My files are on my own server, how can I get the filesize except from converting them to relative (a mess)
EDIT
Örnek:
$filename = 'http://172.16.xx.x/app/albums/002140/tn/020.jpg';
echo $filename . ': ' . filesize($filename) . ' bytes';
Warning: filesize() [function.filesize]: stat failed for http://172.16.xx.x/app/albums/002140/tn/020.jpg in /Applications/XAMPP/xamppfiles/htdocs/app/admin/+tests/filesize.php on line 26
END EDIT
Ben uzak dosyaları için bu örneği bulundu:
$filename = 'http://www.google.com/logos/2010/stevenson10-hp.jpg';
$headers = get_headers($filename, 1);
echo $headers['Content-Length']; // size in bytes
Dosyaları indirirken olmadan bu işler?