RE: [PHP] Authenticating against IMAP
| From: | Mark Lipscombe | Date: | Mon, 04 Dec 2000 14:25:14 +0000 |
| Subject: | RE: [PHP] Authenticating against IMAP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28579@lists.php.net to get a copy of this message | ||
In leiu of a less expensive (processing time wise) method, take a look at:
http://www.php.net/manual/function.imap-open.php
Test for an error, and bingo, you know whether the username & password
combination is acceptable to the IMAP server, so something like this:
if($mbox = @imap_open ("{localhost:443}INBOX", "user_id", "password"))
{
imap_close ($mbox);
... do stuff ...
}
Remember to use @ to supress any error output.
Cheers,
Mark
-----Original Message-----
From: Erik J. Barzeski [mailto:erik@barzeski.com]
Sent: Tuesday, 5 December 2000 1:05 AM
To: PHP List
Subject: [PHP] Authenticating against IMAP
Hi,
I'm resending this - for the first and final time - because this project
is due very soon, and any advice on IMAP (the last step) is appreciated.
I've never undertaken an IMAP authentication before, so I don't know what to
expect just yet.
Perhaps it's obscenely easy, and y'all are laughing at me. :) Either
way, hey, email me or the list... Thanks.
Hi,
Right now I'm running a survey in which we only allow voters to vote
once, and we want to authenticate their username/password against an IMAP
server. Certain users, you see, can log back into the site to view the
stats, others are just told "you already voted" (their username is stored in
the "votetabulations" database).
Does anyone have any good links to code, a tutorial - anything - on PHP
and authenticating via an IMAP server? I have a simple form with two
username/password text boxes...
Any help is appreciated. Email me privately if this question is too
stupid to bother the others. :)
Thanks.
--
Best wishes,
Erik J. Barzeski
If at first you don't succeed,
call it version 1.0.
************************************************
Email: erik@barzeski.com
Web: http://www.barzeski.com/
http://www.soundsetcentral.com/
http://www.applescriptcentral.com/
AIM: iacas ICQ: 8186546
************************************************
--
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