PHP pass a var into $_FILES inside function
<p>I am working on an admin area that will have file uploads on several pages.  Regardless of the name of the form field I want to do some specific processes, but I'm a bit stuck on how to do this in a function.  I have the code below, which I knew going in wouldn't be correct, but I'm not sure how to achieve what I'm trying to do.</p>

<pre><code>function fileprocessor ($file)
{
    echo $_FILES['$file']['tmp_name'];
}
</code></pre>

<p>Any thoughts?</p>
