Re: Error POP3 Class

From: Date: Tue, 23 Oct 2001 11:16:31 +0000
Subject: Re: Error POP3 Class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71922@lists.php.net to get a copy of this message
I had the exact same problem with another class that used Sockets like this one does... Apparently Sockets do NOT work correctly/or at all on Windows, So when it gets to $line.=fgets($this->connection,100); it is trying to read from a socket, and it will not work (and produce the error u see) So we will have to wait for sockets to work on Windows, or move to Linux Andrew ----- Original Message ----- From: "Aku" <hotma@doh-pbm.com> To: <php-general@lists.php.net> Sent: Tuesday, October 23, 2001 5:25 AM Subject: [PHP] Error POP3 Class > Hello, > > I try pop3 class to access pop3 server, why error result like, > "Fatal error: Maximum execution time of 30 seconds exceeded in > c:\new\sample\oh\pop3.php on line 23" > before finish. > > file: pop3.php > > /* Private methods - DO NOT CALL */ > Function GetLine(){ > for($line="";;){ > if(feof($this->connection)) > return(0); > $line.=fgets($this->connection,100); /* > this is line 23 */ > $length=strlen($line); > if($length>=2 && substr($line,$length-2,2)=="\r\n") > return(substr($line,0,$length-2)); > } > } > > Thanks, > Hotma MS > > > > -- > 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 > >

« previous php.general (#71922) next »