append data to the end of csv file
hi everyone, i would like to know how i can append an array of data to the end of a csv file? the case is like this, i have datafile which is in csv format, i have a php program which will process sth and output an array. i would like to put this array result to the datafile, accumulating each time when i run the php program.
can anyone know how to do?
please advice
thanks
hobee
[404 byte] By [
hobee] at [2007-11-19 20:41:27]

# 1 Re: append data to the end of csv file
Well if you use a with fopen() it will always put the file pointer at the end of the file. With this you can continue to add to the CSV.
# 2 Re: append data to the end of csv file
thanks. got it! great!
however, when i view my output using excel, the array items are not put in a row, instead, each item is put in one row....i would like to know if there is any way to put all items in an array in one row, another generated array in the next row?
hobee
hobee at 2007-11-10 3:58:33 >
