85882 wrote:hey,
I have two questions...
1.) How do I open a textfile and write text to the beginning of the textfile using php?
2.) How do I open a textfile and replace all the text of the textfile with what I have in a textbox using php?
You can open a file using the fopen() function: http://us2.php.net/fopen
You can write to a file using the fwrite() function: http://us2.php.net/fwrite
There are different modes you can open the file in: "R", "W", "A" (read, write, and append)
If you read the two links I gave you, then you should be able to figure this all out. If not, just post the code you have developed and we will be glad to help you...