Onetoomanysodas Posted July 25, 2007 Share Posted July 25, 2007 I am developing some AJAX apps and I need to close the socket connection with the client so the browser will execute the server response without waiting for the script to complete it's execution. Here's what I want: <?php $bar = $_POST['foo']; echo "alert('You said '".$bar."')"; // close connection with client so browser evaluates server response someFunctionThatTakesALongTime(); ?> Any help would be most appreciated. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.