Click to See Complete Forum and Search --> : php/txt file


benb7760
08-07-2004, 09:09 AM
is it possible to take a variable, and save it into a text file?
if so, how?
thanks, ben

LordShryku
08-09-2004, 12:07 AM
fopen (http://php.net/fopen) then fwrite (http://php.net/fwrite).

shimon
08-09-2004, 11:01 AM
and don't forget to fclose() ;)





(or indeed just file_put_contents(), depending on your PHP version)