Re: [PHP] storing an array in an ini file

2004-04-14 Thread David T-G
Red, et al -- ...and then Red Wingate said... % % Hi, % % had the same problem before and got around this by writing my own tiny % parser that should work just nicely ( as serializing is a pain-in-the-ass when % editing the .ini file on foot ) Indeed :-) It looks quite interesting; thanks! %

Re: [PHP] storing an array in an ini file

2004-04-13 Thread Red Wingate
Hi, had the same problem before and got around this by writing my own tiny parser that should work just nicely ( as serializing is a pain-in-the-ass when editing the .ini file on foot ) Anyway i switched to using an XML-File now :-) define ('REGEXP_VARIABLE','[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\x

Re: [PHP] storing an array in an ini file

2004-04-13 Thread David T-G
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 an

Re: [PHP] storing an array in an ini file

2004-04-13 Thread John Holmes
David T-G wrote: 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 config data. If I can't, I could probably use a string with @@

Re: [PHP] storing an array in an ini file

2004-04-13 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > Curt, et al -- > > ...and then Curt Zirzow said... > % > % * Thus wrote David T-G ([EMAIL PROTECTED]): > % > > % > 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 t

Re: [PHP] storing an array in an ini file

2004-04-13 Thread David T-G
Curt, et al -- ...and then Curt Zirzow said... % % * Thus wrote David T-G ([EMAIL PROTECTED]): % > % > 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 th

Re: [PHP] storing an array in an ini file

2004-04-13 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > Hi, all -- > > 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 > config data.

[PHP] storing an array in an ini file

2004-04-13 Thread David T-G
Hi, all -- 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 config data. If I can't, I could probably use a string with @@ or | i