Re: cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests
dba_inifile.phpt
| From: | (Marcus Börger) | Date: | Sat, 22 Feb 2003 17:33:04 +0000 |
| Subject: | Re: cvs: php4 /ext/dba config.m4 dba.c dba_inifile.c php_inifile.h /ext/dba/libinifile .cvsignore inifile.c inifile.h /ext/dba/tests dba_inifile.phpt |
||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94466@lists.php.net to get a copy of this message | ||
At 18:20 22.02.2003, Marcus Boerger wrote:
If someone wants to test this stuff: The layout of the inifile is: "[" <group> "]" <name> ws* "=" ws* <value> ws* The dba keyformat to use is: [ "[" <group> "]" ] [ <name> ] For example: dba_insert("[Testgroup]Testvalue", "Value", $f) will insert(append) "Testvalue" with value "Value" to group "Testgroup". dba_delete("[Testgroup]Testvalue", $f) will remove the "Testvalue" from the group "Testgroup". dba_delete("[Testgroup]", $f) will remove the complete group "Testgroup". Lines before any group line are possible, too. These are identified by the group "[]" for now. Maybe i will change this to "". Some work is still to be done but in general it works pretty nice here. 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 ----------------------------------------------------------------------helly Sat Feb 22 12:20:06 2003 EDTLog: @Added dba handler inifiles to support ini files. (Marcus)