File Upload Questions???

Discussion in 'PHP' started by Imozeb, Apr 7, 2010.

  1. #1
    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 :)
     
    Last edited: Apr 7, 2010
    Imozeb, Apr 7, 2010 IP
  2. thecancerus

    thecancerus Peon

    Messages:
    12
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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.
     
    thecancerus, Apr 7, 2010 IP