[PHP] best way to save program prefs to a file?

2005-09-27 Thread Chris
I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a value. Can someone suggest a reference or method to best perform this task? Thanks Chris BTW: I do not want to use MySql. -- PHP

RE: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Jay Blanchard
[snip] I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a value. Can someone suggest a reference or method to best perform this task? [/snip] Open a new file, save stuff to it, close the

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Torgny Bjers
Chris wrote: I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a value. Can someone suggest a reference or method to best perform this task? Thanks Chris BTW: I do not want to use

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread A.J. Brown
Are you wanting the preferences to be real-time changeable? For example, user preferences that can be modified then saved? If so, just store them in an array, then serialize the array and save it to a file. Read the file at every page load. [code] //save the settings

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Edward Vermillion
A.J. Brown wrote: Are you wanting the preferences to be real-time changeable? For example, user preferences that can be modified then saved? If so, just store them in an array, then serialize the array and save it to a file. Read the file at every page load. [code] //save the settings

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Greg Donald
On 9/27/05, Chris [EMAIL PROTECTED] wrote: I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a value. Can someone suggest a reference or method to best perform this task? While learning

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread Chris
Cool...that's exactly what I was looking for!! Torgny Bjers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Chris wrote: I'd like to save some program preferences to a txt file where they can be recalled and updated at a later time. Basically this will be a variable name and a

Re: [PHP] best way to save program prefs to a file?

2005-09-27 Thread A.J. Brown
Vermillion [EMAIL PROTECTED] To: A.J. Brown [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, September 27, 2005 10:48 AM Subject: Re: [PHP] best way to save program prefs to a file? A.J. Brown wrote: Are you wanting the preferences to be real-time changeable? For example, user