i have problem with dba_replace

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ekkl
Forum Newbie
Posts: 1
Joined: Sat Aug 01, 2009 2:44 pm

i have problem with dba_replace

Post 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
Post Reply