PDA

View Full Version : Write form results to log file



proteandev
07-20-2006, 11:27 PM
I'm using php to write out the results from a form submission to a text file but I can't figure out where to put the text file, as in trying to figure out write permission, so that a page on the site can post to a text file. I tried /home/username, but no luck. Any suggestions? Thanks!

Shwaza
07-23-2006, 11:43 AM
With PHP you can write any file as long as you CHMod it correctly. I believe 666 or anything higher will allow you to write a file so you could put the file one level up if you wanted to into a folder called /text_files/ or whatever. You can also put it in the same folder if you want.