tags:

views:

690

answers:

3

Does anyone know of an online CSV editor written in PHP that will allow a user to open, edit, and save a given CSV file?

All I can find are CSV classes and nothing that can handle dynamic files, just predefined lengths etc.

A: 

So you want to be able to open a file, edit it using a web based UI and save it? Why not use Google Docs?

EDIT: Its irritating when people vote you down without leaving a comment as to why... Useless contributions...

Christian
+2  A: 

Parse the CSV file into array. Then, use an array of arrays to populate a matrix of text boxes in your web page. When you submit the form, read the data from $_POST and use fputcsv() to save it.

Think about validation, if relevant.

Sean Woods
A: 

fgetcsv would solve your issue. Basically it takes in CSV file and parses it out into an array.

Rachel