iv been try to add file sizes to external links in the vault
i have got it half working but its not bringing back size of all files
is there something im doing wrong? or is it not possible with all files on all servers?
i have got it half working but its not bringing back size of all files
is there something im doing wrong? or is it not possible with all files on all servers?
Code:
///$file = "http://somesite.con/files/music.mp3";////example file $something = get_headers($file, 1); $size = $something['Content-Length']; echo "<a href=\"$file\">music.mp3</a> $size bytes ";

Comment