Forum Moderators: coopster

Message Too Old, No Replies

Using PHP to parse configuration files

Is there a standard format and function set?

         

aspr1n

6:28 pm on Apr 30, 2003 (gmt 0)

10+ Year Member



I have written my own configuration files for my app, only of course need to parse them accurately.

Whilst I'm quite happy to go the long route to tokenize the parameters, I was wondering if there a.) is a "standard" configuration file format b.) that PHP supports to allow for easy tokenization, as I figure there's no point in reinventing the wheel!

Cheers,

asp

aspr1n

6:49 pm on Apr 30, 2003 (gmt 0)

10+ Year Member



aha I was looking in the wrong place, looks like parse_ini_file() will do just what I want.

asp