Execute java class in PHP

后端 未结 4 1961
眼角桃花
眼角桃花 2021-01-16 01:50

I want to call a java program and fetch it\'s output in stdout. I followed the suggestions in stackoverflow. But it doesn\'t work.

I have add the class file to my C

4条回答
  •  無奈伤痛
    2021-01-16 02:32

    Well, it yields array right? so instead print_r($output) try print($output[0]), that outputting 'Hello World' on my console :D

提交回复
热议问题