|
Posted by Lamer on 10/01/07 04:19
On Sep 30, 9:03 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Lamer wrote:
> > 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!!!
>
> Why are you saving it in a text file? If it's only going to be for a
> short time, you should use the $_SESSION superglobal. If it's going to
> be a longer time, I recommend a database.
>
$_SESSION superglobal?
Navigation:
[Reply to this message]
|