Function to write to client file

I need a code so that when a person enters the site, a text is written to the D://site.txtfile on his computer, for example, “Text 1”, if possible, an example please .

According to the mistakes of the previous topic. I do not need ftp, I need something that would be recorded on the computer.
I don’t need it on the hosting server, I need it on the client’s computer.


Answer 1, authority 100%

You can’t do that.


Answer 2, authority 100%

You can only download such a file. header('Location: /site.txt');


Answer 3

Why store it on the client’s computer? Create on your host, but as I understand it, you do it for yourself, so that you can then read the information. And if even for users, create a separate file on the host for each user.


Answer 4

Well, except that you can store any values ​​in cookies. )