new to php - write new info to file
Posted: Sat May 04, 2002 6:23 pm
Hi.
I'm taking a web server class and for our last project we need to write a php program that takes information off of a form and adds it to a text file. We are inputting user ids and passwords adding them to the file and then letting users change the passwords if they so desire.
I am new to PHP and don't have time to read a book before this project is due. I know how to open a file and read from it, but how do I write information to it and save the file?
And if I want to check for information and then change it, is there an easy way to do it?
Thanks very much. I really want to learn PHP, and I guess I am getting a crash course. This project was just assigned and is due in 8 days. I had no background in PHP before this and I'm picking it up as fast as I can.
Dssquirt
I'm taking a web server class and for our last project we need to write a php program that takes information off of a form and adds it to a text file. We are inputting user ids and passwords adding them to the file and then letting users change the passwords if they so desire.
I am new to PHP and don't have time to read a book before this project is due. I know how to open a file and read from it, but how do I write information to it and save the file?
And if I want to check for information and then change it, is there an easy way to do it?
Thanks very much. I really want to learn PHP, and I guess I am getting a crash course. This project was just assigned and is due in 8 days. I had no background in PHP before this and I'm picking it up as fast as I can.
Dssquirt