What I want to do is when an user logs in to call a Java app from the PHP server. The app to index some content and process it and save it to a database. But what I want to really do, is to call it and nevermind what it does and never wait for the answer. Like a cronjob on demand. Is this possible?
UPDATE:
Is shell_exec a solution?
$res = shell_exec(‘java Myprogram’);
It doesn’t really matter if you are running java or anything else. You need to run new process in background. You can do it with exec. There are a lot of examples in comments there, but you basically need to do: