PHP Classes

loop bug

Recommend this page to a friend!

      pop3.class.inc  >  All threads  >  loop bug  >  (Un) Subscribe thread alerts  
Subject:loop bug
Summary:loop bug if file not writable
Messages:3
Author:DaShiVa
Date:2008-01-31 17:30:10
Update:2008-02-05 20:35:57
 

  1. loop bug   Reply   Report abuse  
Picture of DaShiVa DaShiVa - 2008-01-31 17:30:11
Sorry if this is the wrong place to post - new to this site.

I was getting no output, and traced it to a loop created when it cannot write to the logfile - _logging calls _cleanup, which calls _logging.... etc...
I'll probably manage to fix it, however I'm a sad old procedural programmer, and will probably find the least elegant solution.

  2. Re: loop bug   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2008-02-01 19:48:01 - In reply to message 1 from DaShiVa
Hi,

this was the right place to post this bug.

I took out the call of _cleanup when logging doesn't work. Because the log will initiate before something else will initiate. So the call of cleanup is useless here.

Best thanks to help to make this class better.

regards
Jointy

  3. Re: loop bug   Reply   Report abuse  
Picture of szucs laszlol szucs laszlol - 2008-02-05 20:35:57 - In reply to message 1 from DaShiVa
Hi!

This is my first visit this site.
I have some question for php programing.
I would like to read my emails with php but it did not work.

I used the next code:

<?php
require ('pop3.class.inc');
$pop3 = new POP3;
// Connect to mail server
$do = $pop3->connect ('pop3.vipmail.hu');
if ($do == false) {
die($pop3->error);
}
echo 'Connected to mail server';
$pop3->close();
?>


The answer what I get :
"POP3 connect() - Error: Can't connect to Server. Error: -- "

Can you help me what should be the problem?

Thanks,
Laszlo
szucs_laszlo@vipmail.hu