Re: storing an array in an ini file

From: Date: Wed, 14 Apr 2004 01:31:21 +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-183277@lists.php.net to get a copy of this message
John, et al -- ..and then John Holmes said... % % David T-G wrote: % % >to store array values in there since that is the logical place to keep % >config data. If I can't, I could probably use a string with @@ or | in .. % % If you really need to define arrays, just put them in a .php file and % include() it. You're just going to use some hack to do it with an .ini % file and parse_ini_file(), so why bother? 1) I had hoped to not have to hack :-) 2) Another file that has to be writable by the web server is a pain 3) If I'm going to code a special case then I might as well do it in the same file as all of the other configs 4) It would save me having to write yet another save-the-changes mechanism (I kinda like what I have for the ini file; it worked out well and has handled everything so far :-) % % ---John Holmes... Enough already. I'll serialize any array and then handle it as a special case. Thanks to all for the help :-) HAND :-D -- David T-G davidtg@justpickone.org http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#183277) next »