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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.