|
Posted by Jerry Stuckle on 10/01/07 04:03
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.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|