Re: Determine AuthMySQL* directives in script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dwight Altman wrote:
Is there an existing way via a function or variable to determine Apache
mod_auth_mysql directives (specifically AuthMySQLDB) in use for the current
script?

On our servers, some directories use a basic .htaccess file while some use a
database under mod_auth_mysql while the latest user management system uses a
different database still using mod_auth_mysql.

I would like to have my PHP script determine which .htaccess technique is
being used for its directory, so that the script checks the correct database
for more fine grained ACL role privileges.

An alternative is that I'd have to write a routine to parse the .htaccess
file to check for the directive in a regular expression (and if that
directive is in use {regardless of whitespace} or commented out and not in
use).

Depends. How are you specifying the variables in the .htaccess file?

Are they 'ENV' variables? Do a print_r($_ENV); and they should show up..


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux