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? Link to comment https://forums.phpfreaks.com/topic/57325-echo-long-strings-failure/ 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 Link to comment https://forums.phpfreaks.com/topic/57325-echo-long-strings-failure/#findComment-283387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.