Jump to content

Possible to let php serve a a multi-piece file as 1 file?


dsaba

Recommended Posts

Hi I'm not too familiar with algorithms for serving files or do not really know how much control php has over how a server can serve a file to the user. Here is my problem:

I have a file that has 3 parts sitting on my server.

I would like to enable somehow for a user to click only 1 link or be able to download these 3 parts of the file as one file. So when the user looks at the downloaded file on his computer it will be only 1 file.

 

1. So is it possible with PHP to combine files on a server and stream it out to the user as 1 file so he can download it?

 

2. My second question is if this is possible, is there a way to serve 3 500KB files as 1 file, but never store more than 500KB of data on the server.

 

Thanks for looking.

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.