|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-12 03:42 UTC] yohgaki@php.net
[2001-12-13 02:33 UTC] gclarkii at vsservices dot com
[2001-12-13 02:39 UTC] yohgaki@php.net
[2001-12-13 02:51 UTC] gclarkii at vsservices dot com
[2001-12-13 03:17 UTC] gclarkii at vsservices dot com
[2001-12-13 03:29 UTC] gclarkii at vsservices dot com
[2001-12-13 04:40 UTC] yohgaki@php.net
[2002-11-06 06:00 UTC] helly@php.net
[2003-01-11 11:49 UTC] helly@php.net
[2003-05-19 18:13 UTC] helly@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 10:00:01 2025 UTC |
Hello, If I use postgres first within a PHP script then DBA can not find any keys. It will return the error: "Warning: Unable to find DBA identifier 1 in /www/sites/Test/htdocs/dbafuncs.php on line 31" If I do not use a pg_connect, then it works perfectly. Here is a short script that triggers it. --SNIP-- $dbh = pg_connect("dbname=helpme user=helpme"); if (!$dbh) { die ("Could not connect to the server"); } pg_close($dbh); $dbalocation = "/www/sites/Test/xxadmindb"; echo "$dbalocation<br><br>"; $dbm = dba_open("$dbalocation", "r", "ndbm") || die ("Could not open file"); if(!$dbm) { die ("no handle"); } $key = dba_firstkey($dbm); if(!$key) { echo "<br><br>Error with retreiving Key<br><br>\n"; } $info[$key] = dba_fetch($key, $dbm); while($key != false) { $key = dba_nextkey($dbm); if(!$key) { break; } $info[$key] = dba_fetch($key, $dbm); } dba_close($dbm); --SNIP-- The dba_open works just fine and returns a handle, however anything that needs a key will fail with the above error. GB Clark