|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-03 20:20 UTC] kalowsky@php.net
[2002-09-04 20:49 UTC] sky4lace at hotmail dot com
[2002-10-29 15:24 UTC] adamLDelves at btinternet dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 10:00:02 2025 UTC |
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>"); ?>