Jump to content

Serving a file download of a remote file


naik.apoorv

Recommended Posts

Dear PHPFreak members,

I have been searching a solution for serving a file download via my website. The file to be downloaded is actually on a remote server.

 

What i need is a code that serves as a download medium without actually downloading the file to my web server. Something like masking file url  :confused:

 

Can anyone help me with it ???

Have been trying this since days. But no solution till date.

So you're wanting the user to be able to download the file theirsite.com/file.zip, but you want the link to say yoursite.com/file.zip, but you also don't want the file to have to be on your site?

 

Yeah. The scenario is like this

 

Remote File: http://www.xyz.com/setup.exe

 

On my site I wish to use a file say " download.php "

 

that provides the same contents of the file by accessing it but not downloading it to my server.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.