Re: [PHP] parse_ini_file VS. constructor with many parameters

2004-07-07 Thread Jason Barnett
John W. Holmes wrote: I'd prefer the text file. It's easier to open that and change values plus they don't have to worry about PHP syntax as much. Haven't tried, but you should be able to import them as private variables for your class... Thanks for the advice John. OK, so extending this a bit

Re: [PHP] parse_ini_file VS. constructor with many parameters

2004-07-06 Thread John W. Holmes
Jason Barnett wrote: I have a class definition that has a lot of private properties. These properties don't need to change often, in fact a user could probably just change the values once and forget about most of them. So this makes me think that I should use parse_ini_file and a configuration