Hi guyz, I kinda new here and I dont know if there is post that similar to my question, because I really needed immediately I am posting my question.
Can anyone here help me how to call a Java Program using the PHP.
The PHP code should call a Java program that will extract all the data from the database, I know we can do this in PHP, but I want a more secure one so I want to make a prototype that will call the Java Program that get all the database from the database and make it available for download to the user. I have all my codes done but my last problem is I cant call my Java program even using the exec() and shell_exec() functions. Or I might do it wrong?
Here is my code to call the java program:
I already compiled the program.
But it doesn't work, I also try to call the firefox to try if I can execute the firefox using the PHP exec() function but it also dont work.
Im using LAMP.
I will gladly appreciate any response from you guyz, I really need your help with this.
Thank you.
Can anyone here help me how to call a Java Program using the PHP.
The PHP code should call a Java program that will extract all the data from the database, I know we can do this in PHP, but I want a more secure one so I want to make a prototype that will call the Java Program that get all the database from the database and make it available for download to the user. I have all my codes done but my last problem is I cant call my Java program even using the exec() and shell_exec() functions. Or I might do it wrong?
Here is my code to call the java program:
I already compiled the program.
Code:
exec("java JavaProgram");
Im using LAMP.
I will gladly appreciate any response from you guyz, I really need your help with this.
Thank you.
Comment