Save PHP variables to a text file

Posted by Ajith on Stack Overflow See other posts from Stack Overflow or by Ajith
Published on 2010-06-08T07:29:26Z Indexed on 2010/06/08 7:32 UTC
Read the original article Hit count: 159

Filed under:
|

I was wondering how to save PHP variables to a txt file and then retrieve them again.

Example:

There is an input box, after submitted the stuff that was written in the input box will be saved to a text file. Later on the results need to be brought back as a variable. So lets say the variable is $text I need that to be saved to a text file and be able to retrieve it back again.

Hope it makes sense,

Thanks in advance!!!

© Stack Overflow or respective owner

Related posts about php

Related posts about file