Using php extension to run java command
Posted: Thu May 24, 2012 4:32 am
First I try php code to run java.
=== php ===
<?php
exec("java -cp xx.jar xxxxx");
?>
Nothing response when I run it from browser.
Then I write php extension (c++) .
===c++ ===
string c_java(){
return system("/usr/bin/java -cp xxx/javase/javase.jar xxxxxxxxxxxxx");
}
Nothing response too. Why I can't use php extension to run java command ?.
any one knows that?
=== php ===
<?php
exec("java -cp xx.jar xxxxx");
?>
Nothing response when I run it from browser.
Then I write php extension (c++) .
===c++ ===
string c_java(){
return system("/usr/bin/java -cp xxx/javase/javase.jar xxxxxxxxxxxxx");
}
Nothing response too. Why I can't use php extension to run java command ?.
any one knows that?