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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -