I use PHP to call a Java command then forward its result into a file called result.txt. For ex, the file contains this:
\"Result is : 5.0\"
but the function filesize() retur
Which function do you use ?
Because exec() can directly assign result to a variable, so maybe there's no need to save output to a file, if you just want to load it in PHP.