Hodo Posted June 26, 2007 Share Posted June 26, 2007 I have a situation where I am echoing a long string to a client (winsock receive). This string is an extraction from a database. I use a while loop to do this (code below) . Problem is the echo immediately following the last iteration of the while doesn't get seen by the client (sometimes). while($row = mysql_fetch_row($result)) { echo("LIST ".$rc.$spc.$row[0].$spc.$row[1].$spc.$row[2].$spc.$row[3].$spc.$row[4].$spc.$row [5].$spc.$btime); $rc++; } echo("LISTDONE "); <<<<<< CLIENT NEVER SEES THIS (sometimes) Seems like it needs some delay before sending the last line any help? ideas? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted June 26, 2007 Share Posted June 26, 2007 post more script, but you can apply a wait, but odds are you can probably test for completness first Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.