what would happen if i used the set_time_limit(0) function and after this i wrote some infinite loop, to keep the connection alive and flush() the output in every delay, the question is if the client disconnect or the connection for some reason is closed, is the script stay running? or PHP will terminate the script!....
what is the best way to keep the connection alive between the client and server and at the same time terminate the script when the connection closed ...
thank you