Re: storing an array in an ini file
| From: | David T-G | Date: | Tue, 13 Apr 2004 22:31:40 +0000 |
| Subject: | Re: storing an array in an ini file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183267@lists.php.net to get a copy of this message | ||
Curt, et al --
..and then Curt Zirzow said...
%
% * Thus wrote David T-G (davidtg-php@justpickone.org):
% >
% > I have an ini file for my application and I use parse_ini_file to load it
% > and some custom code to save modifications. I'd like to figure out how
% > to store array values in there since that is the logical place to keep
..
%
% You could always serialize the array to a value. and unserialize it
% after the call to parse_ini_file().
I thought about that, but what I'm really after is not having to do any
special processing for a variable -- both because it makes special cases
and because then I'd have to reserialize it if I were to write out a
change.
Of course, I may be stuck at that point, but I'd sure love to see how I
can store it natively just like I can declare it natively in a script.
%
% Curt
Thanks & HAND
:-D
--
David T-G
davidtg@justpickone.org
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!