Posted by RM on 04/02/06 10:14
Just starting to learn PHP and I am trying to build a simple web form. I
have a file that I use VI to open up and add information to. I would like
to create a web page that allows me to do two things with this file. First,
I need to search the file for a string of text. If what I am looking for is
there, I do not need to do anything else. If the text is not there, I need
to edit the file, add information to the bottom of the text and save it. A
bonus would be to make a dated backup copy of the file before saving.
I guess my main question is, will PHP allow me to do this and are there any
links that I coud go to that would provide some insight in to how to do it.
My PHP books do not go into detail on searching or editing text files.
-RM
[Back to original message]
|