Re: fgets bug?

From: Date: Mon, 21 Aug 2000 23:21:36 +0000
Subject: Re: fgets bug?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-12840@lists.php.net to get a copy of this message
moshe wrote: > fread() act execty like the fgets() it's also wait forever. > i have to correct myself: also fpassthru() wait forever..... > > there is any way to dedect that the server ending to sent data? may timer > need to by used? > Moshe, This sounds very simular to my posts 'Timing out an fgets' I was basically told about socket_set_blocking() which when set to false will make fgets return straight away and not sit there waiting for data to be sent. This seem to work but I have run into some strange things while using it and have made little progress. Hope this helps. Joseph Blythe

« previous php.general (#12840) next »