PHP Problem : filesize() return 0 with file containing few data?

后端 未结 3 1187
闹比i
闹比i 2021-01-18 06:14

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

3条回答
  •  旧巷少年郎
    2021-01-18 06:50

    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.

提交回复
热议问题