calculating checksum when uploading a file
<p>I am uploading files to server. I found a function like</p>

<pre><code>$sha1 = sha1_file($filename);
</code></pre>

<p>at <a href="http://www.tuxradar.com/practicalphp/8/15/0" rel="nofollow">http://www.tuxradar.com/practicalphp/8/15/0</a></p>

<p>So I was wonder whether or not <code>$filename</code> should point to the actual file with path or just the filename?</p>

<p><code>$_FILES['upload']['name']</code> will do it right?</p>
