Re: Log in multiple users to MySql
| From: | Jochem Maas | Date: | Sat, 12 Mar 2005 21:29:06 +0000 |
| Subject: | Re: Log in multiple users to MySql | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38878@lists.php.net to get a copy of this message | ||
Mahmoud Badreddine wrote:
I authenticate users of my database with the Apache dialog box. I would like to know where do these values (usernames and passwords) get stored so that I can use this information to log in to the MySql database.its not a DB related question, you should have posted at php-generals, well actually you should have STFW but anyway the following should tell you what you need to know: $login = isset($_SERVER[ 'PHP_AUTH_USER' ]) ? $_SERVER[ 'PHP_AUTH_USER' ]: false; $pass = isset($_SERVER[ 'PHP_AUTH_PW' ]) ? $_SERVER[ 'PHP_AUTH_PW' ]: false;