RFC: dba/inifile native interface
| From: | (Marcus Börger) | Date: | Sun, 23 Feb 2003 00:13:47 +0000 |
| Subject: | RFC: dba/inifile native interface | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-94479@lists.php.net to get a copy of this message | ||
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
----------------------------------------------------------------------