[PHP-DB] PDO setAttribute return value

2007-04-20 Thread Jerry Schwartz
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

RE: [PHP-DB] Determine AuthMySQL* directives in script?

2007-04-20 Thread Dwight Altman
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,

Re: [PHP-DB] PDO Exception Handling Question

2007-04-20 Thread Jerry Schwartz
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

RE: [PHP-DB] Determine AuthMySQL* directives in script?

2007-04-20 Thread Dwight Altman
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