Re: [PHP] Working with a config file

2006-02-21 Thread Curt Zirzow
On Mon, Feb 20, 2006 at 05:21:51PM -0500, Benjamin Adams wrote: > I'm trying to parse a config file, example of the config is: > [fred] > id=8782 > section=s1 > years=4 > download1=mirror1 > ... I'd say http://php.net/parse-ini-file is your best option. Curt. -- cat .signature: No such file or d

Re: [PHP] Working with a config file

2006-02-20 Thread Michael Hulse
On Feb 20, 2006, at 2:21 PM, Benjamin Adams wrote: I want to parse this so I can only call frank or freds data and move id, section, years, etc to varaibles. Can someone give me some help Here is a function I wrote, I bet it will help you (sorry, not the most readable because I pulled from bi