本文介绍了读写文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是pradeep。我是PHP的新手。你可以帮帮我。

i一个名为con.conf的文件(配置文件)包含

名称:pradeep

地方:bangalore


i需要读取此文件并在浏览器中以表单类型显示内容。然后gve一个提交按钮,以便编辑和更新文件。

你可以给我一个这个过程的代码。

email:[REMOVED]

解决方案




但是,如果你可以的话,请给我一些代码。我可以读取文件(),但是cld没有这样做。 plzz你可以帮我机智代码..我会很高兴你



Hii this is pradeep here . i am a newbie to PHP .can u help me out.
i hve a file called con.conf(configuration file) tht contains
name:pradeep
place:bangalore

i need to read this file and display the contents in form type in browser . and then gve a submit button so as to edit and update the file .
can u gve me a code for this process.
email:[ REMOVED ]

解决方案



but plzz gve me code for tht program if u can.i read tht file() but cld not do it. plzz can u help me wit code..i wll be great ful to u


Unless you have money, your "great"-fulness isn''t worth much (at least not to me :-D).

What you want to do is something that a database could do easily. If you really want to do it with a file, then go back to the documentation for the file() function and read the documentation for ALL of the file functions (fread(), fwrite(), fopen(), etc.) and make the code.

It''s not hard to decipher. I only help those who help themselves. Show some effort, and you''ll get some assistance.


这篇关于读写文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 03:01