filesize increments

Hello, I’m trying to display my filesizes in a table to display as either bytes, KB, MB, etc, but I can’t seem to get it to work properly. I’ve found a few scripts online, but nothing will work with my code (unless I’m doing it wrong). And yes, I’m a noob.

[php]$Open = opendir("/users");
while($Files = readdir($Open)){
$Filename = “/users/” . $Files;
$Size = filesize("/users/$Files");
print stripslashes("


Please provide me with a script for how to do it and if you could help me out with where exactly to put it, that’s be even better!

Sponsor our Newsletter | Privacy Policy | Terms of Service