note 93369 added to function.dba-open

From: Date: Sun, 06 Sep 2009 11:59:33 +0000
Subject: note 93369 added to function.dba-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-160252@lists.php.net to get a copy of this message
Note the “c” create flag does not work if MySQL was built with the “cdb” DBA handler compile option which is common for many distros. By definition the cdb DBA handler is optimized for reading/writing and “no updates are allowed.” <?php $dbh = dba_open( "./data2/productz", "c", "cdb") or die( "Couldn't open Database" ); ?> instead use <?php $dbh = dba_open( "./data2/productz", "n", "cdb" ) or die( "Couldnt open Database" ); ?> generates this error message in the /var/log/apache2/error.log: [Sun Sep 06 04:18:15 2009] [error] [client 192.168.1.125] PHP Warning: dba_open(./data2/productz,c) [<a href='function.dba-open'>function.dba-open</a>]: Driver initialization failed for handler: cdb: Update operations are not supported in /var/www/projects/testcdb-c.php on line 43 see user contributed comment under dba_handlers() to see which DBA handlers are supported by your build of MySQL and note about using “cdb” compiled DBA systems: also see user contributed comment under dba_replace() about incompatibilities with cdb DBA handler compiled MySQL systems. ---- Server IP: 69.147.83.197 Probable Submitter: 76.171.200.56 ---- Manual Page -- http://www.php.net/manual/en/function.dba-open.php Edit -- https://master.php.net/note/edit/93369 Del: integrated -- https://master.php.net/note/delete/93369/integrated Del: useless -- https://master.php.net/note/delete/93369/useless Del: bad code -- https://master.php.net/note/delete/93369/bad+code Del: spam -- https://master.php.net/note/delete/93369/spam Del: non-english -- https://master.php.net/note/delete/93369/non-english Del: in docs -- https://master.php.net/note/delete/93369/in+docs Del: other reasons-- https://master.php.net/note/delete/93369 Reject -- https://master.php.net/note/reject/93369 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160252) next »