Is there any way to run a php command line script (server side) from a javaservlet?? I've been trying and I don't get any exception but the script doesn't do what it supposed it does. I don't know if I'm breaking any security rules (like applets have). I'm using this code:
Runtime runtime = Runtime.getRuntime();
Process process = null;
try
{
process = runtime.exec("php " + "wsaa-client.php wsfe" + " wsfe");
}
catch(Exception e)
{
out.println("<h4>Runned!</h4>");
}
And everything look ok. Even I have a process running called: php-cgi.exe
Any help/suggestion?