How can I solve the problem of remote reading excel files in the LAN? $ Filename = "// 10.198.108.143/test/abc.xls ";
$ Size = filesize ($ filename );
Echo $ size;
Error: Warning: filesize () [function. fileseze]: stat failed for // 10. 198... on line 19
I have read the post on the forum at http://bbs.csdn.net/topics/390313277. the error message is returned.
The testfile folder is a shared file folder on the local network 10.198.108.143machine, and abc.xls is in the test folder.
In "start"> "run", enter "\ 10.198.108.143 \ test" to find and open the abc file.
Thank you for your help.
Reply to discussion (solution)
Are you sure you want to check it out?
I don't know if file_size can be used to obtain the remote file size
However, if you want to implement it, my first response code is roughly as follows:
$ Header = get_headers ($ file_url, 1); var_dump ($ header ['content-length']);