Is it my imagination, or does setAttribute return FALSE on success and TRUE
on failure? I've tested it with getAttribute, and it definitely seems to
work the reverse of what the documentation states.
I'm using MySQL, and I am setting the error handling.
--
PHP Database Mailing List
Cool alternative.
We don't write .htaccess files like that though.
Anyway, I actually wrote a function to parse the .htaccess file, but I will
try this SetEnv/getenv technique also.
Thanks.
Regards,
Dwight
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday,
I hope by now you figured this out, but you have to use $dbh-setAttribute()
to enable exception handling for anything but the initial object creation.
Worse yet, as of 2007/04/20 the return values of setAttribute are reversed.
It returns TRUE on failure and FALSE on success.
Rodney Topor
It appears that Apache still needs the directive without the SetEnv prefix
to actually use the mod_auth_mysql authentication, but an additional line
with the SetEnv directive will pass that variable to the script.
AuthMySQLDB aDataBaseName
SetEnv AuthMySQLDB aDataBaseName