i have problem with dba_replace
Posted: Sat Aug 01, 2009 3:02 pm
Sorry for my english
I write script in ASPLinux 14
I works with dba so
When file not exists (os are empty) it's ok when is not empty i hahe this error
I try to create empty file and open it with
first key are writed, second key caesed this error
I write script in ASPLinux 14
I works with dba so
Code: Select all
//file.ini does not exists
$r=dba_open("file.ini", "c" ,"inifile);
//file.ini ere created and is empty
$key=dba_key_split ("[section]key1");
dba_replace ($key, "value1");
//This is ok. section and key are writet in file.ini
//---------------------------------------------
//-------------------------------------
// its have I problem
$key=dba_key_split ("[section]key2");
dba_replace ($key, "value2");
//This have I error php writed warning
//could not copy group [xxxxxxx-xx] to tepmorary stream
I try to create empty file and open it with
Code: Select all
$r=dba_open("file.ini", "w" ,"inifile);