Notice !if you running a loop (while, foeach etc..) you have to send something to the browser to check the status.Example:while(1){ if (connection_status()!=0){ die; }}doesnt work, if the user break/close the browser.But a:while(1){ Echo "\n"; //<-- send this to the client if (connection_status()!=0){ die; }}will work :)i hope it will help some of you to safe some time :)Toppi