Re: [UPHPU] upload file, read, discard… move to read?

Wade Preston Shearer lists at wadeshearer.com
Wed Jul 30 12:36:14 MDT 2008


On 30 Jul 2008, at 12:31, Wade Preston Shearer wrote:

> I am working on a tool that will allow users to upload a CSV file. I  
> will then read the contents and store them in a database. After I  
> read the contents of the file I have no additional need for the file  
> and it can be discarded. With the way that file uploads work, I will  
> still need to move (with move_uploaded_file()) the file somewhere  
> before I can read it, right (using $_FILES['userfile']['tmp_name']  
> somehow)?

I just read what I wrote and that last sentence could be confusing. I  
am very familiar with the upload process. My question is simply if  
there is a way to read the file without moving it. Can I read it from  
the temporary location that it is uploaded to?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2425 bytes
Desc: not available
Url : http://uphpu.org/pipermail/uphpu/attachments/20080730/8ffff17b/smime.bin


More information about the UPHPU mailing list