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
You say:
I use PHP to call a Java command then forward its result into a file called result.txt.
Who does the result writing?
1.The JAVA programm?
2.Do you catch the output in PHP and write it to the file.
3.Do you just redirect the output from command line?
If 1 and 3 you might have a delay between when the result is written in the file so, practically, when you read the file in PHP, if you don't wait for the execution to finish, you read it befor it even was written with the result.