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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--
PHP General 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]