Quote:
|
Originally Posted by BlakMonk
Any ideas ?
|
Yes, actually. I have been reviewing the php manual and looked at all sorts of output functions and ways of controlling the socket connection. Unfortunatly, I need to experiment with it in order to understand exactly how it works.
There is one solution that's pretty simple - use output buffering to send your output to the browser and close the connection:
Code:
<?php
header("Connection: close");
ob_start();
echo "This is output to browser";
$size=ob_get_length();
header("Content-Length: $size");
ob_end_flush();
flush();
// Anything done here is done after output is sent to browser.
?>
Does this make sense? I could be off track here. I still am wondering if the connection to the client is indeed closed with this script.