1. How do I use flock with file_put_contents? 2. And how do I change and know a file name that is uploaded? 3. And what do the different parts of this mean. $_FILES['name']['size'] Do I have to replace ['name'] with my file name and what do they mean by ['tmpname']? What's the difference? I'm pretty sure ['size'] tells PHP to output the file's size but is the file size in bytes or kbytes? 4. And how do I choose where to upload a file to using this: move_uploaded_file As you can see I'm new to working with uploading files, so any help would be appreciated. Thanks. ~imozeb
you can start by reading http://php.net/manual/en/reserved.variables.files.php and http://www.php.net/manual/en/features.file-upload.php between these two most of your questions will be answered.