You are here: Re: Save PHP variables to a text file « PHP Programming Language « IT news, forums, messages
Re: Save PHP variables to a text file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация