In PHP versions before PHP 4.3.0 you must use semaphores to guard against simultanious database access for any database handler with the exception of GDBM.
dba_open() returns a positive handler id or FALSE, in the case the open is successful or fails, respectively.