как скачать xml файл - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ [email protected] (admin) [email protected] (admin) Fri, 26 Apr 2024 23:40:29 +0300 <strong>Win4esteR</strong>, у тебя может просто время сбито, не? Хотя ты бы вообще на сайты с https не зашёл... https://visavi.net/topics/43878/699527 как скачать xml файл /7o/loTeH4I1k Sun, 04 Feb 2018 01:44:09 +0300 Сообщения https://visavi.net/topics/43878/699527 <blockquote class="blockquote"><br> Randy, наоборот указывать нужно что проверять ssl сертификат не нужно! он просто не разобрался с curl&#039;ом <footer class="blockquote-footer">throw (Вчера / 17:56)</footer></blockquote> Ну не знаю. У меня с PAYPAL были проблемы, пока вообще не исключил эти строки. https://visavi.net/topics/43878/699482 как скачать xml файл Александр Tue, 30 Jan 2018 11:35:26 +0300 Сообщения https://visavi.net/topics/43878/699482 <strong>Randy</strong>, наоборот указывать нужно что проверять ssl сертификат не нужно! он просто не разобрался с curl&#039;ом https://visavi.net/topics/43878/699481 как скачать xml файл JustZero Mon, 29 Jan 2018 17:56:44 +0300 Сообщения https://visavi.net/topics/43878/699481 А если не указывать<br> <pre class="prettyprint">curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);</pre> ? https://visavi.net/topics/43878/699480 как скачать xml файл Александр Mon, 29 Jan 2018 17:14:34 +0300 Сообщения https://visavi.net/topics/43878/699480 <strong>Win4esteR</strong>, что за Пых? Ты не пыхти https://visavi.net/topics/43878/699470 как скачать xml файл Zдешний Mon, 29 Jan 2018 04:14:21 +0300 Сообщения https://visavi.net/topics/43878/699470 Короче. Код выше на опен сервере такую же ошибку выдает. Но я проверил его на хосте, все без ошибок.. На опен сервере стоит Пых 5.4 , выше пока поставить не могу, ошибку выдает . Может дело в версии пыха, хз. Всем спасибо! https://visavi.net/topics/43878/699469 как скачать xml файл Win4esteR Mon, 29 Jan 2018 01:21:49 +0300 Сообщения https://visavi.net/topics/43878/699469 <strong>Win4esteR</strong>, <pre class="prettyprint"> &lt;?php $stream_opts = &#91; &quot;ssl&quot; =&gt; &#91; &quot;verify_peer&quot; =&gt; false, &quot;verify_peer_name&quot; =&gt; false, ] ]; $response = file_get_contents(&quot;https&#58;//www.example.com&quot;, false, stream_context_create($stream_opts)); file_put_contents(&#039;file.xml&#039;, $response); </pre> https://visavi.net/topics/43878/699466 как скачать xml файл JustZero Sun, 28 Jan 2018 20:19:05 +0300 Сообщения https://visavi.net/topics/43878/699466 <strong>anonymouse</strong>, не работает... в обоих случаях выдает ошибку: <br> Warning: file_get_contents() [function.file-get-contents]: SSL operation failed with code 1. OpenSSL Error messages: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure in D:\OpenServer\domains\testrab1.ru\pars1.php on line 2<br> <br> Warning: file_get_contents() [function.file-get-contents]: Failed to enable crypto in D:\OpenServer\domains\testrab1.ru\pars1.php on line 2 https://visavi.net/topics/43878/699465 как скачать xml файл Win4esteR Sun, 28 Jan 2018 20:16:47 +0300 Сообщения https://visavi.net/topics/43878/699465 <pre class="prettyprint">&lt;?php $file=file_get_contents(&#039;хттп&#58;//сайт.ру/тест.xml&#039;); //далее работа с файлом // ... // и запись в файл file_put_contents(&#039;file.xml&#039;, $file);</pre> Если никакой обработки не предполагается то можно просто<br> <pre class="prettyprint">&lt;?php copy(&#039;хттп&#58;//сайт.ру/тест.xml&#039;, &#039;file.xml&#039;);</pre> https://visavi.net/topics/43878/699463 как скачать xml файл /7o/loTeH4I1k Sun, 28 Jan 2018 01:03:12 +0300 Сообщения https://visavi.net/topics/43878/699463 <strong>Win4esteR</strong>, точнее адрес напиши, пробовать надо https://visavi.net/topics/43878/699445 как скачать xml файл Dmitry Kokorin Sat, 27 Jan 2018 14:17:36 +0300 Сообщения https://visavi.net/topics/43878/699445 <strong>Caswap</strong>, что-то не работает.. вот какой код<br> <pre class="prettyprint">&lt;?php $file = &quot;test.xml&quot;; $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_URL, &quot;https&#58;//test.test.ru/test/&quot;.$file); $result = curl_exec($ch); curl_close($ch); if ($result) { header(&#039;Content-type&#58; application/octet-stream&#039;); header(&#039;Content-Disposition&#58; attachment; filename=&#039; . $file); header(&#039;Content-Length&#58; &#039; . strlen($result)); echo $result; exit(); } ?&gt;</pre> https://visavi.net/topics/43878/699430 как скачать xml файл Win4esteR Fri, 26 Jan 2018 19:47:04 +0300 Сообщения https://visavi.net/topics/43878/699430 <blockquote class="blockquote">&lt;?php<br> $file = &quot;НАЗВАНИЕ ФАЙЛА&quot;;<br> $ch = curl_init();<br> curl_setopt($ch, CURLOPT_HEADER, 1);<br> curl_setopt($ch, CURLOPT_FAILONERROR, 1);<br> curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br> curl_setopt($ch, CURLOPT_URL, &quot;http://АДРЕС САЙТА&quot;.$file);<br> $result = curl_exec($ch);<br> curl_close($ch);<br> <br> if ($result)<br> {<br> header(&#039;Content-type: application/octet-stream&#039;);<br> header(&#039;Content-Disposition: attachment; filename=&#039; . $file);<br> header(&#039;Content-Length: &#039; . strlen($result));<br> echo $result;<br> exit(); <br> }<br> ?&gt;</blockquote> https://visavi.net/topics/43878/699426 как скачать xml файл Володя Fri, 26 Jan 2018 18:20:05 +0300 Сообщения https://visavi.net/topics/43878/699426 подскажите пожалуйста! файл находится на сайте сайт.ру/тест.xml каким образом я могу скачать его себе на хостинг с помощью php? уже весь инет облазил, туплю сильно https://visavi.net/topics/43878/699425 как скачать xml файл Win4esteR Fri, 26 Jan 2018 17:59:11 +0300 Сообщения https://visavi.net/topics/43878/699425