J
J
JoveLebedev2016-12-05 17:05:12
PHP
JoveLebedev, 2016-12-05 17:05:12

How to accept a file from a remote server?

The remote server sends the file over HTTP ContentType = 'text/plain'.
How can I take it on my side?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Volf, 2016-12-05
@Wolfnsex

$f = fopen('file1.txt', 'w');
fwrite($f, $_REQUEST['имя_переменной_с_файлом'];
fclose($f);

Something like this, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question