|
From: johannes s. <e00...@st...> - 2005-04-07 09:51:13
|
Hi everyone!
I'm new to this list and wanted to state first that I really appreciate the
work done with the phplibextreme! It's very useful for server-environments
where it's impossible to install certain php-modules.
Still, I've got a problem with the pop3 function: I get every now and then
the following error when executing the script I put under this message:
Fatal error: Call to a member function on a non-object in
/pathtophplibextreme/pop3.inc on line 122
Did anyone see this error before?
Thx a lot in advance!
johannes
<?php
[...initializing database...]
$mail = new pop3();
/* Connect to POP3 server */
if($mail->pop3_connect("serveradressok", "usernameok", "passwordok", 20) )
{
$data = $mail->pop3_get_mailbox_info();
$data = $mail->pop3_get_mail_keys();
}else
{
echo "No connection to mailserver!";
die();
}
for ( $i =1 ; $i<=sizeof($data); $i++ )
{
$content = $mail->pop3_get_mail($i);
$mail->pop3_delete_mail($i);
[...write mail-content to database...]
}
$mail->pop3_close();
echo sizeof($data)." mails read.";
?>
|