is there way run php command line script (server side) javaservlet?? i've been trying , don't exception script doesn't supposed does. don't know if i'm breaking security rules (like applets have). i'm using 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 ok. have process running called: php-cgi.exe
any help/suggestion?
you try use absolute path of both php , wsaa-client.php file. please catch exception , print out exception.
Comments
Post a Comment