views:

41

answers:

1

Hello, I have an Apache server running which hosts a php web application. Also, its provides provisions for downloading a file of size around 900MB from it. However, while testing the application I found out that its not possible to pause the downloads and resume them later on.

Could someone help me? Is it an apache property I must change?

+4  A: 

If you serve your files with php then you should implement Range header processing in your script. You can recieve current range value from $_SERVER['HTTP_RANGE']. It contains the offset in bytes from begin of file.

ps: as usually mentioned - almost everything is already answered here ;-) http://stackoverflow.com/questions/157318/resumable-downloads-when-using-php-to-send-the-file/157447#157447

zerkms