基于PHP的CSV编辑器? [英] PHP-based CSV editor?
本文介绍了基于PHP的CSV编辑器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道用PHP编写的在线CSV编辑器,该编辑器将允许用户打开,编辑和保存给定的CSV文件吗?
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?
我能找到的只是CSV类,没有什么可以处理动态文件,只是预定义的长度等.
All I can find are CSV classes and nothing that can handle dynamic files, just predefined lengths etc.
推荐答案
解析将CSV文件转换为数组.然后,使用数组数组填充网页中的文本框矩阵.提交表单时,请从$_POST
中读取数据并使用fputcsv()
保存.
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.
这篇关于基于PHP的CSV编辑器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文