Skip to content
Advertisement

PHP-based CSV editor? [closed]

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.

Advertisement

Answer

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.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement