I am uploading files to server. I found a function like
$sha1 = sha1_file($filename);
at http://www.tuxradar.com/practicalphp/8/15/0
So I was wonder whether or not $filename should point to the actual file with path or just the filename?
$_FILES['upload']['name'] will do it right?
The path to uploaded file is
$_FILES["upload"]["tmp_name"]so if you haven’t moved the uploaded file the function call would be