What functions and such do I need to look for to output to a txt file? Is what I want to do is make a survay that you file out and when you click submit all that information is formated in a certain way and appended to a text/.html file along with everyone else's answers so I can read what everyone had to say by looking at one file. I know you can make the output go to a buffer, but I don't know how to get the output to go to another file, what am I looking for?
fopen and fwrite.
here's how:
$fp = fopen("myfile.txt", "w"); fwrite($fp, $contents); fclose($fp);
Read the manual for more info. Especially on the second argument of fopen.