|
Posted by Rik Wasmus on 10/01/07 13:09
On Mon, 01 Oct 2007 14:03:55 +0200, Bruno Barros <ragearc@gmail.com> wrote:
>> Could var_export do something similar?
>
> Yes but those things would not be retrievable as easily as with
> unserialize ;).
>
Depends on how much effort you put in writing to the file. If you do it
right, you just include the file and your variable is automagically
available. About saving this information to a file I agree with Jerry
though. Use sessions (which with the default 'files' handler will
automatically take care of those reading/writing issues), or use a
database for longer needed information.
--
Rik Wasmus
Navigation:
[Reply to this message]
|