Jak najprościej pobrać dane z pliku który jest pod adresem url (są to dane txt bez zadnych tagów)? Próbowałem w ten sposób:
<?php
file_put_contents('dane.json',fopen("http://test.pl/test.php", 'r'));
?>
Dostaje błąd:
..failed to open stream: HTTP wrapper does not support writeable connections in ...