Are you using ob_start () and ob_end_flush() ?
If not then declaring ob_start () as the very first "<? ob_start ("ob_gzhandler");"
function call and ob_end_flush() where you want the string to output should do the
trick.
____________________________
Matthew Luchak
Webmaster
Kaydara Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Dietrich Ayala [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 5:39 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] sockets and flush()
no tables. my test script prints a single string prior to the sockets code.
thx,
dietrich
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 11:12 AM
> To: dietrich
> Cc: [EMAIL PROTECTED]
> 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
> > [EMAIL PROTECTED]
> > 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.
>
> Cheers,
> Rob.
> --
> .-----------------.
> | Robert Cummings |
> :-----------------`----------------------------.
> | Webdeployer - Chief PHP and Java Programmer |
> :----------------------------------------------:
> | Mail : mailto:[EMAIL PROTECTED] |
> | Phone : (613) 731-4046 x.109 |
> :----------------------------------------------:
> | Website : http://www.webmotion.com |
> | Fax : (613) 260-9545 |
> `----------------------------------------------'
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php