Re: [PHP] PHP to Java integration using : shell_exec function

2011-05-26 Thread Robert Williams
On 2011-05-26 12:00, "Eli Orr (Office)" wrote: > $EncXML = shell_exec(""/usr/bin/java/java -jar MyApp.jar -XML ><$XML_toEnc>); <<== ??? How can I pass parameters like a large string of >let say XML? You're missing the shell escaping. Try something like this: $xml = 'hello'; $xml_shell = e

[PHP] PHP to Java integration using : shell_exec function

2011-05-26 Thread Eli Orr (Office)
Hi, Please advise if the following is possible and how can pass parameters from the PHP to the Java application. Thanks. Here's my script draft: // The XML_toEnc is a string and shall be urlencoded ! $EncXML = shell_exec(""/usr/bin