|
Posted by gerg on 03/20/06 10:57
I've written an upload script that should do the following:
**************************************
This part works
**************************************
- Upload a .txt file.
- Read the information from the document into a variable. At the current
time, I'm using the file() function that does successfully read the
contents, line by line, into an array.
**************************************
This is what I need to make work
**************************************
- I am having trouble working with the array. I can use print_r() to
feed the array values, in the shape of:
Array ( [0] => another test [1] => [2] => [3] => this is another test!
[4] => [5] => It worked! )
I need this to be basically inserted into a database (which I can do
just fine). But I just want it in plain text format. For example, file
gets uploaded, data stripped, and tossed in a database, in the same
format as the .txt file. I don't want to store the text file persay,
just the data from the file. I'm on the verge of figuring this out, but
I don't know what function to use. Thanks in advance for any help.
Greg
Navigation:
[Reply to this message]
|