Is anyone familar w/ ob_start and ob_end_flush? I am trying to debug my read_from_socket function and I'm trying to figure out exactly what it get stuck on. How can I use these functions to spit out what it get immediatly. Everytime I use any of these functions I get a "The page cannot be displayed" error.
Here my function without the flushes.
function Read_Socket($Socket){
$Line = "";
//The end of the response is noted with
// '\n\n'
while(!strstr($Line, "\n\n")){
$Line .= fread($Socket, 1);
//I want to flush the output here.
}
}