Re: sockets and flush()

From: Date: Tue, 09 Apr 2002 20:34:35 +0000
Subject: Re: sockets and flush()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92297@lists.php.net to get a copy of this message
Hmmm I'm no expert on web IO between Apache and PHP, but my guess is that Apache is holding the data and waiting for more. To verify this I recommend that you try running from a shell cgi and see if your string is flushed to stdio as it should. I remember running into a similar problem one time while performing a remote file(). Cheers, Rob. Dietrich Ayala wrote: > > no tables. my test script prints a single string prior to the sockets code. > > thx, > > dietrich > > > -----Original Message----- > > From: robert.cummings@webmotion.com > > [mailto:robert.cummings@webmotion.com] > > Sent: Tuesday, April 09, 2002 11:12 AM > > To: dietrich > > Cc: php-general@lists.php.net > > Subject: Re: [PHP] sockets and flush() > > > > > > dietrich wrote: > > > > > > i have a script that makes a socket connection about halfway through the > > > page. > > > > > > nothing on the page prints until the socket operation is finished, even if i > > > call flush() prior to the socket operation. > > > > > > does anyone now of a way to force PHP to output the buffer prior to > > > executing the socket code? > > > > > > thanks! > > > > > > dietrich > > > dietrich@ganx4.com > > > dietrich.ganx4.com > > > > Are you using Netscape 4.x and possibly making the socket connection > > while inside a main table tag? Nescape 4.x series doesn't usually draw > > a table until the close tag is found or the page ends. -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.general (#92297) next »