Page 1 of 1

i have problem with dba_replace

Posted: Sat Aug 01, 2009 3:02 pm
by ekkl
Sorry for my english 8O
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
 
 
 
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

Code: Select all

$r=dba_open("file.ini", "w" ,"inifile);
first key are writed, second key caesed this error