RE: [PHP] best way to save program prefs to a file?
| From: | Jay Blanchard | Date: | Tue, 27 Sep 2005 13:50:36 +0000 |
| Subject: | RE: [PHP] best way to save program prefs to a file? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223277@lists.php.net to get a copy of this message | ||
[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 file.
Include the file where you need the prefs.
http://www.php.net/fopen
http://www.php.net/explode