How to determine the remote server path

Source: Internet
Author: User
How to determine the remote server path: php Server file scandir

Use PHP to write a small program, view the file from the remote server, and copy the required file.
But how to determine the initial file path. if the path is specified locally, the program can run.
$ Origin = "Network \ Project \ Images"; // if the path is local, for example, "C: \...", it is correct.


Error message:


How do I write this path?

Thank you!


Reply to discussion (solution)

If http is used, you can use http: // 58.22.6.22/topics/390595943

It is best to paste your directory structure
You can use both the relative and absolute paths.

The relative path is \ Project \ Image \..
Enter \ Project \ Image \ .. in the folder window of your computer to access this folder of the VM. But this path scandir () cannot be identified. what should I do?

Thank you!

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.