-1

file1.avi was gunziped into file1.gz and uploaded to server.

When someone downloads file1.gz, I want to serve directly file1.avi :

It means: the script decompresses file1.gz and sends its content: file1.avi

yarek
  • 11,278
  • 30
  • 120
  • 219
  • 4
    Possible duplicate of [How can I extract or uncompress gzip file using php?](https://stackoverflow.com/questions/11265914/how-can-i-extract-or-uncompress-gzip-file-using-php) – Dieter Kräutl Aug 23 '18 at 08:04

1 Answers1

0

I suggest to use file_get_contents() and gzdecode() :)

Keale
  • 3,924
  • 3
  • 29
  • 46
Damian Dziaduch
  • 2,107
  • 1
  • 15
  • 16