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

Re: [PHP] PHP to Java

2008-10-16 Thread Børge Holen
On Oct 16, 2008, at 10:50 PM, [EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_ini

Re: [PHP] PHP to Java

2008-10-16 Thread Daniel Brown
On Thu, Oct 16, 2008 at 4:50 PM, <[EMAIL PROTECTED]> wrote: > > Any suggestions on a good reference or conversion program or something?... You could begin by not hiding behind the title of a CEO, Lynch. We know it's you. ;-P -- More full-root dedicated server packages: Intel 2.4GHz/60GB/5

[PHP] PHP to Java

2008-10-16 Thread ceo
For reasons we needn't go into, I need to convert this to Java: $to_encode = "example.com/api?foo=bar"; $key = "asdfasdfasdfasdfasdfasdf"; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt_generic ($td, $to_e