Hi,
I'm observing the following with function ftp_fget() where I'm asking it to download bytes starting from a given offset to the end of file.
I'm specifying a file resource (2nd arg) obtained by:
$fp = fopen($filename, "w+");
Then a non-zero "resumepos" value (last arg), say 64000.
The ftp_fget() call succeeds, and after I close $fp and open it on an editor, I see 64000 null bytes then followed by the correct data. So it seems to have seeked the remote file as I requested, but it seems to have also seeked the local file before writing the requested data?
I'm fairly new to PHP so I may be missing something here. I've searched the bugs DB and these fora but did not find anything related (which makes me think I'm doing something wrong).
Thanks in advance for the help,
Peter