Re: PHP authentication help needed
| From: | Oktay Ozturk | Date: | Wed, 13 Dec 2000 16:12:42 +0000 |
| Subject: | Re: PHP authentication help needed | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30105@lists.php.net to get a copy of this message | ||
Hello
Thank you for your response
Actually what this script does is takes an .htpasswd file and uses the
username on the pw file to register that user as an owner of the mysql field
I want to make the owner in email format that's my problem
Thanx
""Richard Lynch"" <richard@zend.com> wrote in message
news:015101c0646e$86b0fca0$64aa8ed8@142.170.100...
> > I have below code. I use this code to access a forum administration
> > page.
> >
> > The username and password is kept in a .passwd file. In this passwd file
> > when I use this line it
> > works:
> > user:CdfnB6m99.L92
> > but I would like use a username like this:
> > user@domain.com:CdfnB6m99.L92
>
> I think you mean:
>
> http://user:CdfnB6m99.L92@domain.com
>
> This allows the user/password to access domain.com with their
authentication
> as part of the URL.
>
> It is not an email address.
>
> > What I mean by this is username must be an email. Does anybody know how
> > alter below code so
> > that usernames that contain @ sign will work.
>
> I think that if you move the password as described above, you will get two
> variables:
> $PHP_AUTH_USER
> $PHP_AUTH_PW
> and you do not need to use strtok or anything like that to get them. They
> just appear.
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>