How do I code a function that uses external variables? For example? I have an upload script that I am using repeatedly through a few pages. I'd like to make my code more efficient and just define the upload script as a function and call it every time I need to upload a file.
Is it possible to call a function that has to use external variables like the $_FILES[] variable?