Hoster has disabled mod_deflate and mod_gzip for reasons of earnings on traffic. Are there any analogues of these modules? Can crutches using PHP or Perl?

Theoretically, if PHP will produce the result of the gzcompress function with the Content-Encoding: gzip header, will it work?

  • it is also necessary to process the availability of information from the client: does it support compression? and whether your http-server transmits this information to your interpreter only you can find out. compression example: hackingwithphp.com/13/10/0/compressing-output - aleksandr barakin
  • It will be at the end. And now I have another problem: header ('Content-Encoding: gzip'); header ('Content-Type:'. mime_content_type ($ filename)); echo gzcompress ($ filename); Client swears at ERR_CONTENT_DECODING_FAILED. What could be the problem? - user64675
  • I think this is clearly another matter entirely. - aleksandr barakin
  • What is the problem to change the host? There are lots of offers on the market without idiotic considerations. - Invision
  • The fact that I have no money for a normal host. Hope this explanation fits. Opened a new issue with the problem of implementation. - user64675

1 answer 1

Strange statement of the question, if you find analogues of Apache modules, I doubt that the hoster will connect them to you.

Regarding the "crutches" in PHP, unsubscribed in your child question