hi
I am trying to use the register_shutdown_function and the syntax is correct but I don't know why it wouldn't work ..
the syntax i am using is
set_time_limit(0);
function on_shutdown(){
// I tried to write to a file on exit
}
register_shutdown_function("on_shutdown");
do{
echo("data");
flush();
//infinite loop untill the connection aborted
}while(!connection_aborted());
i am using windows / omniHTTPD ...
but also the Flush() is not working...
I think those problems because of using OmniHTTPD isn't it? ...
If I used Apache is it going to solve the problem or UNIX is required!
thank you