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 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]


Удаленная работа для программистов  •  Как заработать на 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

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