I use XAMPP 1.7.7 on windows7.(PHP Version 5.3.8) I use proc_open() run a process and want to redirect to another web page, but PHP will wait until the process is finished. I don't want the running process make my web to wait it. What should I do?
And I need pipes and the return value.
What I need: A user submit something in page A,then the web will redirect to page B(and user can leave page B). At the same time some processes will be called , produce some results and update the database,so when the user refresh the page B,the right result will be show. What's more,the user can view the page B any time. I notice that chris's comment on PHP Manual,his method can run a process which is independent with PHP.But I don't know how to use pipes on the hide process or get the return value.
And I have no idea on AJAX,I think the Gearman maybe work,but it's maybe a little complex.