Reputation: 79
I want to execute some java class for doing some bacground work,(have no any ui related task).like file read, write in a specific location. My main server side is done by php. I want to call these java program from php file. I study about Java/PHP Bridge. But i could not understand what i have to use like jse program(not suitable in server),jsp application (have no gui), or by a ejb. Please tell me what will be the best option to do that?
Upvotes: 1
Views: 632
Reputation: 13263
You can execute a program in a couple of ways:
exec()
system()
passthru()
shell_exec()
or the shell execution operator (the backticks, ``)Which one to use depends on what you want. You should study the above links and figure out which one to use.
Upvotes: 2