修改一下 php 代码, 用于post 文本数据
这段代码用于文本 post 数据(运行正确),文件保存在该段php代码文件所在的文件夹,我想改变一下,把post上来的数据保存在另外一个独立的文件夹,比如 叫做 txtfile 的文件夹,如何修改呢?
回复讨论(解决方案) echo file_put_contents('txtfile/' . $_post[name], $_post[content], file_append);
echo file_put_contents('txtfile/' . $_post[name], $_post[content], file_append);
thanks