ID: 14969
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: IMAP related
Operating System: linux-2.2.18
PHP Version: 4.1.0
New Comment:

with database connections you usualy take advantage 
of the fact that a whole application uses the same
username and password internaly

with imap you have different username and password
for every session instead of one application-wide
entry

so it's not very likely you'll be able to re-use
an already existing persistant connection 




Previous Comments:
------------------------------------------------------------------------

[2002-01-10 12:08:10] [EMAIL PROTECTED]

Sorry, the machine from where i copied the error message was without
IMAP support, but after adding i got the message you pasted.

And about persistent connections, if it's something like *SQL persistent
connects then i think i have an idea. It should work simething like
"keep the connection open for some time and when same user/password
combination comes use the old connection", right? 

Connecting to 5000+ mail mailbox takes some time (and server load) with
authentication, if i could skip the authentication step on next connects
then i'd be on a win ;)

thanks for the answer anyway ;)

------------------------------------------------------------------------

[2002-01-10 11:27:07] [EMAIL PROTECTED]

popen is implemented but disabled in the code
as it isn't working well

but you should get "Persistent IMAP connections are not yet supported."
if you had the imap extension compiled in or loaded, "Call to undefined
function" indicates that you have no imap support at all in your build

PS: persistant connections in php might not be
    what you tink they are ...

------------------------------------------------------------------------

[2002-01-10 10:40:52] [EMAIL PROTECTED]

--- test.php ---
<?
IMAP_POPEN("myserver.com", "MyName", "MyPassword");
?>
--- /// ---

Fatal error: Call to undefined function: imap_popen() in
/home/kalle/public_html/imap.php on line 2

Still, there is entry in manual:
http://ee.php.net/manual/en/function.imap-popen.php
---
(3.0.12 - 3.0.18 only, PHP 4 >= 4.0.0)
imap_popen --  Open a persistant IMAP stream to a mailbox 
---

so, who is fooling who ;) AND, there has NEVER been (well, in my
extensive use of PHP staring from PHP/FI ending with latest CVS
versions) function like that...

Pitty, i REALLY could use persistent connections to IMAP servers ;)
really...


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14969&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to