Related questions about ReadFile and file_get_conents

Source: Internet
Author: User
Questions about ReadFile and file_get_conents
Cases

echo File Get contents ("http://www.csdn.net/")

What is the process of ReadFile and file_get_conents, please?

Remote server-----> Local-----> Client

Still is

Remote Server-----> Client


If the remote file is downloaded to local and then sent to the client is not to occupy the resources of the local server?

Is there a way to pass the client's request directly to the client directly from the remote receiver? (Requirement: Hide the URL of the remote server)

------Solution--------------------
First, correct the file_get_contents.

PHP is running on the server side of what do you say is the process?

//========
If the remote file is downloaded to local and then sent to the client is not to occupy the resources of the local server?

Is there a way to pass the client's request directly to the client directly from the remote receiver? (Requirement: Hide the URL of the remote server)

It is not possible to work on the server side without consuming resources.
The client's request is passed directly to the client? Remote server URL? That is to do the desktop program, let the client run a PHP environment, or
This effect can be achieved by using JS and Ajax mates for processing.
  • 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.