Provided that your PHP configuration allows files to be uploaded, creating a file upload form is fairly straightforward.
First you need to create the form. Two fields are needed, one to specify the file to be uploaded and a second to specify where to put it on your site.
Here's an example (formatting etc is omitted):
Next you need to add the load_file function to the web page called to process the form (upload.php in the above example).
Finally, all that remains is to call the function from within the destination page at the spot in the page where you want the message returned from the function to be displayed passing it the field names from your form.
This article written by Stephen Chapman, Felgall Pty Ltd.