RE: Re: No data?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't 'have' a file. It creates a temporary file and then deletes it just
as fast in /tmp/.
Plus, how would I $_GET it? $_FILES is supposed to handle 'ALL' of this for
me? If not, what the heck does it do?


Brad Sumrall
NYCTelecomm.com
212 444-2996


-----Original Message-----
From: Jim Giner [mailto:jim.giner@xxxxxxxxxxxxxxxxxx] 
Sent: Thursday, July 26, 2012 5:02 PM
To: Brad
Cc: php-db@xxxxxxxxxxxxx
Subject: Re:  Re: No data?

Not sure what you mean - "Program reads array".  What program is doing is
utilizing the FILES element to get the info about the uploaded file and
proceeds to finish the upload by moving it to a temporary folder of your
creation.  Once that is done you HAVE the file under whatever name you want
to call it in whatever folder you want it in.

Why don't you just do that part and then use some tool to look at your
server structure to verify that you have the file.

NOW you can proceed with the rest, if you must.  You're going to create a
table with a column/field name matching the filename and then you'll put the
contents of that file into that single column in one record of this table.
So now you have a one record table with one column holding the contents of a
file.  How is this different from just having the file?

1 User uploads file
2 program reads array
3 program creates a table called $memberID.$filename  if not exist
($filename is column)
4 program uploads data into table/column

I am messed up at #2 for some reason so #4 fails.



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux