After fixing hopefully last problems in the inifile handler i made
up a patch which introduces a native interface to the inifile handler.
I did this because the "[group]name" key format is not intuitive.

The patch introduces following (self speaking) new functions:

int inifile_open(string path, string mode)
string|false inifile_get(int inifile [, string group], string name)
bool inifile_set(int inifile [, string group], string name, mixed value)
bool inifile_add(int inifile [, string group], string name, mixed value)
bool inifile_del(int inifile [, string group], string name)

and inifile_close() beeing an alias to dba_close()

this interface is not meant to have first/nextkey but that would be
easy to add if someone wants it.

http://marcus-boerger.de/php/ext/dba_inifile.diff.txt

regards
marcus



--
----------------------------------------------------------------------
Marcus Börger - Looking for all sorts of freelance work - just ask...

Did i help you? Consider a gift:
http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
----------------------------------------------------------------------


-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to