Simple php file list - filesize not working
<p>I am not very used to php, but I have made an index.php page to put in any folder of my private web server, in order to allow me to quickly download some docs. It works fine, except that I tried to add the file size. That part of the code just displays "filesize" instead of the size itself. Can someone help to fix this?  </p>

<pre><code>&lt;h1&gt;My tools&lt;/h1&gt;
&lt;?php
$dirname = ".";
$dir = opendir($dirname);

while(false != ($file = readdir($dir)))
    {
    if(($file != ".") and ($file != "..")  and ($file != "index.php"))
        {
        echo("&lt;a href='$file'&gt;$file&lt;/a&gt; filesize($file) &lt;br /&gt;");
        }
    }
?&gt;
</code></pre>
