[thelist] displaying file size in PHP

Symeon Charalabides symeon at systasis.com
Mon Oct 5 15:53:18 CDT 2009


Joel,

> $filesize = filesize($path/$file);
> echo "$filesize<br />";

If this is what you typed verbatim, you will probably need to change the 
first line to something more like:

$filesize = filesize($path.'/'.$file);

-- 

Symeon Charalabides (cosmopolite trainee)
-----------------------------------------
http://www.systasis.com
http://twitter.com/bluesymeon
http://www.linkedin.com/in/symeon
http://www.last.fm/user/bluesymeon



More information about the thelist mailing list