paulman888888 Posted August 9, 2010 Share Posted August 9, 2010 Hello; I know there is a way but I just can't get it out of my head. I have my code that i want to show to the user and then i have code i want to execute but not show anything to user. I no am not making my self clear which i am sorry for so ill give you an example. <? show_my_site(true); // Now i have code which will never output anything but the webbrowser will always wait for it to complete my_function_that_takes_time(true, 'Very Long'); ?> So what i want is some code to tell the browser thats it! You have everything. I cant use die; or exit; because i want to execute the code. Thank-you Paul Quote Link to comment https://forums.phpfreaks.com/topic/210229-stop-the-client-waiting-for-server/ Share on other sites More sharing options...
xangelo Posted August 9, 2010 Share Posted August 9, 2010 From what you described, I think you're looking for this: http://ca.php.net/manual/en/function.sleep.php but depending on what you are trying to do there may be a better answer. Quote Link to comment https://forums.phpfreaks.com/topic/210229-stop-the-client-waiting-for-server/#findComment-1097076 Share on other sites More sharing options...
jcbones Posted August 10, 2010 Share Posted August 10, 2010 Or, you could use cURL to send your info to another script, this would process your function in the background. Quote Link to comment https://forums.phpfreaks.com/topic/210229-stop-the-client-waiting-for-server/#findComment-1097328 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.