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

php - Passing multiple values in a url using checkbox -

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

sql - Postgresql tables exists, but getting "relation does not exist" when querying -