Hi there, can anyone help a newbie with storing text from a form into a text-file. Is it hard? I am going to learn PHP but I am in need of knowing this fast.. :-/
/Claes
It's very easy, examples exist in manual around these places (check user comments too) :
Open the file : http://www.php.net/manual/en/function.fopen.php
Write to the file : http://www.php.net/manual/en/function.fwrite.php
Read the file : http://www.php.net/manual/en/function.fread.php
Pay special attention to the Modes within fopen() such as w,r and a. Also, have a look here :
http://www.php.net/manual/en/function.file.php
File() reads a file where every line is an element of an array. Anyway, play with the provided examples.
thx.. 🙂
I really like php, im gonna try to learn it.. thx again!