Run PHP script from Java and capture the output -


i need run php script java class , output of script in order notify end user of results. use runtime.getruntime.exec("php "); in order execute php script, how capture console output?

any suggestions?

the output of process can found using getinputstream on returned process exec call.


Comments

Popular posts from this blog

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

javascript - return highlighted cells to php -

java - Creating a room by reading from a file (for a game) -