How can I solve the problem of remote reading excel files in the LAN?

Source: Internet
Author: User
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']);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.