-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
  • 10,010
  • 26
  • 106
  • 195
  • 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,774
  • 3
  • 29
  • 45
Damian Dziaduch
  • 2,059
  • 1
  • 15
  • 16