Hi,
Let’s say I have a .JAR file that simply performs a calculation. I would like users of my website to be able to get the result of this calculation by invoking this JAR file via the exec command in PHP.
This works fine on local host using XAMPP, however I am unsure how this would work in a real deployment on a web server.
Providing the hosting provider allows the exec command and the invocation of java files, how will this work regarding multiple users? Is there a new thread created on the server for each invocation of the single JAR file?
If there are multiple users on my website and they all select the option that sends the PHP command to the server, will each user invoke a new instance of the JAR file? Is this something I have to deal with myself, or is this handled by the hosting provider?
To be clear, I have a small .JAR file that performs a unique calculation and returns the result. I want users of my website to be able to generate a result from this file and have it displayed.
Any help would be much appreciated
Thanks