About readfile and file_get_conents

Source: Internet
Author: User
For readfile and file_get_conents, for example, echofilegetcontents (& quot; delimiter), what is the process of readfile and file_get_conents? remote server ----- & gt; local-about readfile and file_get_conents
Example

Echo file get contents ("http://www.csdn.net /")

What is the process of readfile and file_get_conents,

Remote server -----> Local -----> client

Or

Remote server -----> client


If you download a remote file to a local device and send it to the client, do you want to occupy the resources of the local server?

Is there a way to directly send client requests from the remote server to the client? (required: hide the URL of the remote server)

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

Php is running on the server. what is the process?

// ==========
If you download a remote file to a local device and send it to the client, do you want to occupy the resources of the local server?

Is there a way to directly send client requests from the remote server to the client? (required: hide the URL of the remote server)

It is impossible to work on the server without occupying resources.
Client requests are directly sent to the client? Remote server URL? That is to say, you want to create a desktop program and let the client run a php environment, or
This effect can be achieved through the combination of js and ajax.

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.