#19220 [Opn->Bgs]: Warning: driver initialization failed in c:Apache/1.3.24

From: Date: Thu, 05 Sep 2002 01:57:21 +0000
Subject: #19220 [Opn->Bgs]: Warning: driver initialization failed in c:Apache/1.3.24
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18464@lists.php.net to get a copy of this message
ID: 19220 Updated by: kalowsky@php.net Reported By: sky4lace@hotmail.com -Status: Open +Status: Bogus Bug Type: DBM/DBA related Operating System: Windows NT 5.0 build 2195 PHP Version: 4.2.2 Previous Comments: ------------------------------------------------------------------------ [2002-09-04 20:49:58] sky4lace@hotmail.com Thanks man. It was indeed permissions. Had overlooked the idea that Windows 2000 is not really a standalone system i.e. it is trying to mimic Unix in that it is trying to be a multi-use environment. ------------------------------------------------------------------------ [2002-09-03 20:20:44] kalowsky@php.net This sounds more like a local user error than a PHP error. Are you sure you have a) permissions to write the file, and b) permissions to read the file? ------------------------------------------------------------------------ [2002-09-03 20:07:03] sky4lace@hotmail.com Constantly getting this error and am not able to make any progress. I believe this to be a bug on PHP installed as a module. Warning: driver initialization failed in c:\program files\apache group\apache\htdocs\anyatha3\login_fes\login_test.php on line 11 Failed opening existing dba file:passwords.db Warning: Unable to find DBA identifier 0 in c:\program files\apache group\apache\htdocs\anyatha3\login_fes\login_test.php on line 26 Warning: Unable to find DBA identifier 0 in c:\program files\apache group\apache\htdocs\anyatha3\login_fes\login_test.php on line 37 USERID = The script that I am running is: <?php $handler_name = "db3"; $file_name = "passwords.db"; # $file_path = "../../ua_fes"; $file_mode = "passwords"; $user_id = "adrianlunga"; $user_pwd = "password"; if (file_exists($file_name)) { $db_id = dba_open($file_name, "w", $handler_name); if (!$db_id) { echo "Failed opening existing dba file:".$file_name."\n"; } } else { $db_id = dba_open($file_name, "n", $handler_name); if (!$db_id) { echo "Failed opening new dba file:".$file_name."\n"; } } if (dba_exists($file_name, $user_id)) { $last_seen = dba_fetch($user_id, $db_id); } else { # dba_insert($file_name, $userid, $password); } # do_stuff(); # dba_replace($string_handlername, $userid, time()); dba_close($db_id); echo ("<HTML>"); echo ("<HEAD>"); echo ("<META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">"); echo ("<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=windows-1252\">"); echo ("<LINK REL=\"stylesheet\" TYPE=\"text/css\" HREF=\"../../../main.css\">"); echo ("<TITLE>"); echo ("Login Page"); echo ("</TITLE>"); echo ("</HEAD>"); echo ("<BODY TEXT =\"black\""); echo (" LINK =\"blue\""); echo (" VLINK =\"black\""); echo (" ALINK =\"blue\""); echo (" BACKGROUND =\"../images/indtextb.jpg\""); echo (" BGPROPERTIES =\"fixed\""); echo (">"); echo "USERID = ".$last_seen; echo ("</BODY>"); echo ("</HTML>"); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19220&edit=1

« previous php.bugs (#18464) next »