<?php function readfile_chunked($filename,$retbytes=true) { $chunksize = 1*(1024*1024); // how many bytes per chunk $buffer = ''; $cnt =0; // $handle = fopen($filename, 'rb'); if ($handle === false) { return false; } { if ($retbytes) { } } if ($retbytes && $status) { return $cnt; // return num. bytes delivered like readfile() does. } return $status; } ?>
W cURLu mogę się zalogować bez problemu ale niestety cURL nie przekaże sesji i ciasteczek. Ma ktoś jakiś pomysł
