From: Flach <flach@mcnet.ru> To: community@altlinux.ru Subject: [Comm] [JT] php, mysql, apache authentication Date: Wed, 5 Mar 2003 15:11:00 +0300 Message-ID: <20030305121637.7D1D47A73@sorry.mcnet.ru> (raw) Добрый день! Хотел выяснить для себя вопрос с аутентификацией пользователей с помощью связки php, apache и mysql. Сейчас у меня эта штука реализована путем ввода пользователем логина и пароля в обычной html-форме. Переменные передаются сценарию php, который проверяет совпадение или несовпадение введенных данных в Mysql и далее "по сценарию". Вообщем-то все работает. Решил сделать тоже самое с помощью посылки header c запросом логина и пароля. Все как и ожидалось работает, но в первом сценарии я передавал пароль в mysql через password('$pass'), а во втором случае WHERE username='$PHP_AUTH_USER' and password=password('$PHP_AUTH_PW') "; пароль оказывается неверным. Что не так, ведь по-идее все совершенно одинаково? С уважением, Михаил
next reply other threads:[~2003-03-05 12:11 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-05 12:11 Flach [this message] 2003-03-06 5:21 ` Maxim.Savrilov 2003-03-06 7:04 ` Korshunov Ilya
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20030305121637.7D1D47A73@sorry.mcnet.ru \ --to=flach@mcnet.ru \ --cc=community@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git