Is there any simple way to take an uploaded file, place it into an array, read line by line and then append it to a variable, finally exporting a textfile download with the results?
For example:
1) user uploads text file with 20 line items including words like:
apple
orange
pear
banana
etc.
2) the file is then read in php and is appended to a pre-defined variable such as: "the fruit is " + line item.
3) the file is then offered back to the user as a txt file with the lines 1-20 like:
the fruit is apple
the fruit is orange
the fruit is pear
etc...
Thanks, I've been trying all sorts of methods and none even spit out the results of the file. I figured I am doing something completely wrong.
Thanks in advance!
Web site design, internet marketing, SEO and business solutions company.
For example:
1) user uploads text file with 20 line items including words like:
apple
orange
pear
banana
etc.
2) the file is then read in php and is appended to a pre-defined variable such as: "the fruit is " + line item.
3) the file is then offered back to the user as a txt file with the lines 1-20 like:
the fruit is apple
the fruit is orange
the fruit is pear
etc...
Thanks, I've been trying all sorts of methods and none even spit out the results of the file. I figured I am doing something completely wrong.
Thanks in advance!
Web site design, internet marketing, SEO and business solutions company.