output string to text file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
inosent1
Forum Commoner
Posts: 97
Joined: Wed Jan 28, 2009 12:18 pm

output string to text file

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: output string to text file

Post 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.
(#10850)
Post Reply