PHP to Java integration using : shell_exec function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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:

<?PHP
      ...
      ....
      $XML_toEnc = urlencode ($XML);

// The XML_toEnc is a string and shall be urlencoded ! $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?

echo  $EncXML; // back to the MObile Client

// Receiving client shall:
//  urldecode the string


?>


Eli Orr


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux