on May 6th, 2008File Uploading in PHP
File uploading is very simple in PHP when comparing to other server side programming languages. File uploading is very useful in most of the situations like uploading user’s photos, uploading csv reports, uploading pdf reports and so on.
Making a simple front end with file browsing box:
-
-
<form method="post" enctype="multipart/form-data">
-
Upload a file
-
<input name="my_file" type="file" />
-
<input value="Upload" type="submit" />
-
</form>
Note: You should have this enctype=”multipart/form-data”‘ in your form tag while uploading files.
The php source code to upload the files

Nice tutorial for beginners
thanks for your comment
Thanks , It will really help me
Nice tutorial, but how to validate the file extensions?
Great php file uploading tutorial, but it needs few works to secure the functionality.