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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.