0

Suppose that I have a resumable link to a URI on the web.Is there any method I can setup a streaming script/service that simply redirects the data by downloading it from a source to destination(assume that the destination is the file requestor) ? Like what happens at http://unrestrict.li/home .They say that they stream the files directly to end user i.e they DO NOT store any files on their servers.

2
Contributors
1
Reply
8
Views
3 Years
Discussion Span
Last Post by flashhtml5
0

You can open a socket for streaming with fsockopen(),

Then you could use fread() to read it into a $buffer variable and successively pass the data to the user with a:

print $buffer;

command until the EOF marker is found. Make sure to send header() content notifications before trying to pass the user some arbitrary binary data.

The above is just one way to do it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.