Page 1 of 1

output string to text file

Posted: Fri Jan 20, 2012 9:04 pm
by inosent1
i have been able to create a string that reads the right way, now i need to output the string to a text file and save it to a folder on the server.

Re: output string to text file

Posted: Sat Jan 21, 2012 1:19 am
by Christopher
See the manual, especially this section: http://www.php.net/manual/en/book.filesystem.php . Specifically the file_put_contents() and fopen()/fwrite() functions.