Re: fgets to port 110 won't work

From: Date: Sun, 21 May 2000 18:18:30 +0000
Subject: Re: fgets to port 110 won't work
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250@lists.php.net to get a copy of this message
Liz Kimber wrote: > > Have you tried upgrading to a newer version of PHP? No but since this is something that should work well in 3.0.8 and up I didn't want to complicate matters. > Have you checked that it opened the port correctly with > > if (!$connectoin) {echo "Failed to connect" ; exit; } Yes. It does open the port. As I stated I am using a variant of the POP3.php library. This is used in a variety of web mail scripts that are available. In fact it was in attempting to get one of those scripts running that I found this problem. After digging down into the script I discovered where the problem exists. I have added the &$error_number and &$error_desciption variables to the fsockopen call just to be sure but it always reports that everything is opening just fine. However any attempt to read with fgets just sits there. As I said I have verified using telnet that the opening of the connection returns the expected +OK ..... but I can't seem to read it in the PHP script. -- ==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. mhess@miraclec.com http://www.miraclec.com

« previous php.general (#250) next »