D
D
Dmitry Mishutin2020-05-30 11:43:55
PHP
Dmitry Mishutin, 2020-05-30 11:43:55

How does readfile work?

Can you tell me how the readfile function works in PHP? I need to make a php page that uploads a file to the client side from a link passed in GET parameters. Do I understand correctly that this function creates an XHR request on the client side? Or does it first upload the file to the server, the server transfers this file to the client, and then the file is deleted?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2020-05-30
@MeShootIn

Have you tried reading the documentation ?
Like all other PHP functions, readfile runs exclusively on the server. It cannot create anything on the client side.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question