For readfile and file_get_conents, for example, echofilegetcontents (& quot; www.csdn.net & quot;), what is the process of readfile and file_get_conents? remote server ----- & gt; local ----- & gt; the client is still a remote server ----- & gt; if the client issues the remote file with 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.