helly Wed Dec 11 07:00:18 2002 EDT Modified files: /phpdoc/en/reference/dba/functions dba-open.xml Log: Latest changes Index: phpdoc/en/reference/dba/functions/dba-open.xml diff -u phpdoc/en/reference/dba/functions/dba-open.xml:1.7 phpdoc/en/reference/dba/functions/dba-open.xml:1.8 --- phpdoc/en/reference/dba/functions/dba-open.xml:1.7 Fri Nov 15 12:31:32 2002 +++ phpdoc/en/reference/dba/functions/dba-open.xml Wed Dec 11 07:00:17 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/dba.xml, last change in rev 1.2 --> <refentry id="function.dba-open"> <refnamediv> @@ -27,11 +27,14 @@ <parameter>mode</parameter> is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for - create, truncate and read/write access. Additional you can use "l" to - lock the database with an .lck file or "d" to lock the databasefile itself. - It is important that all of your applications do this consistently. If - you want to test the access and do not want to wait for the lock you can - add "t". + create, truncate and read/write access. Additional you can set the databse + lock method with the next char. Use "l" to lock the database with an .lck + file or "d" to lock the databasefile itself. It is important that all of + your applications do this consistently. If you want to test the access and + do not want to wait for the lock you can add "t" as third character. When + you are absolutly sure that you do not require database locking you can do + so by using "-" instead of "l" or "d". When none of "d", "l" or "-" is used + dba will lock on the database file as it would with "d". </para> <para> <parameter>handler</parameter> is the <link linkend="dba.requirements">name @@ -42,7 +45,7 @@ </para> <para> <function>dba_open</function> returns a positive handle or &false;, in - the case the open is successful or fails, respectively. + the case the database was opened successfull or fails, respectively. </para> <note> <para> @@ -135,7 +138,16 @@ </note> <note> <para> - Locking and the <parameter>mode</parameter> modifiers "l", "d" and "t" were + Since PHP 4.3.0 it is possible to open database files over network connection. + However in cases a socket connection will be used (as with http or ftp) the + connection will be locked instead of the resource itself. This is important to + know since in such cases locking is simply ignored on the resource and other + solutions have to be found. + </para> + </note> + <note> + <para> + Locking and the <parameter>mode</parameter> modifiers "l", "d", "-" and "t" were added in PHP 4.3.0. 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
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php