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.

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.