Here's what I want to go:
- Read a remote file (specifically an MP3)
- Read the binary data into a variable
- Write this to disk
I have that working just fine - but what I want is a progress while this is happening. I'm using file_get_contents right now and I assume I'd have to use something different that would let me loop through the file X times - that way I'd know where I am. I'd then update the browser using JavaScript so that the user would know how much longer this will take.
Any ideas?
Thanks,
Ross