Possible duplicate:
Asynchronous exec shell in PHP
I need to run a java program in the background.
process.php contains
shell_exec("php php_cli.php")
php_cli.php contains
shell_exec("java -jar BiForce.jar settings.ini > log.txt");
I call process.php asynchronously using ajax
When I click on a link on a webpage that calls the ajax function (to run process.php), the webpage shows "loading". when I click other links, at the same time it is not responding.
It takes about 24 hours to complete the execution of the Java program, so the user will not wait for the execution to complete.
The problem is that the browser continues to load and does not go to other pages when the link is clicked.
I also tried with system (), but the same problem ....
Help would be greatly appreciated.