RE: [PHP-DB] gdbm locking problem

2004-10-26 Thread Norland, Martin
Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -Original Message- From: Jeff Moss [mailto:[EMAIL PROTECTED] Sent: Monday, October 25, 2004 11:14 PM To: Michael Jeung Cc: [EMAIL PROTECTED] Subjec

Re: [PHP-DB] gdbm locking problem

2004-10-25 Thread Jeff Moss
I don't use GDBM, but it looks like you have the wrong idea completely. dba_open will return a database connection handle, if its successful, there is no sense opening up multiple database handles in a loop like that. dba_open will do locking itself, the "d" in "wd" tells it to use a file lock,

Re: [PHP-DB] gdbm locking problem

2004-10-25 Thread Michael Jeung
No offense taken =) It 's often the small things that trip me up. In this case, though, the situation is so simple that I suspect a problem with gdbm, or maybe the way that I'm using gdbm. 1) are both scripts repeatedly printing their results, or does the second not start until you stop the fi

RE: [PHP-DB] gdbm locking problem

2004-10-25 Thread Norland, Martin
http://us2.php.net/manual/en/function.dba-open.php indicates (in an entertaining little table) your second script should be in 'wait' status until the first exits - so, the necessary logical questions (take no offense): 1) are both scripts repeatedly printing their results, or does the second not