<?php $src = fopen('http://www.exemple.com','r'); $dest1 = fopen('first1k.txt','w'); $dest2 = fopen('remainder.txt','w');
print stream_copy_to_stream($src, $dest1, 1024) . " octets copiés vers first1k.txt\n"; print stream_copy_to_stream($src, $dest2) . " octets copiés vers remainder.txt\n";
?>
|