Jump to content

echo long strings failure


Hodo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.