You want to enable compression for every Web page of your Website. Which of the following PHP.ini directives can you set to accomplish the task?
Each correct answer represents a complete solution. Choose all that apply.
[4118,4119]
Correct:
--> zlib.output_compression = on
--> zlib.output_compression_level = 9
Explanation: Answer options B and C are correct.
If you want to enable compression for every Web page of your Website, you should change the following configuration directives in your php.ini file:
zlib.output_compression = on
zlib.output_compression_level = 9
Since you can change these settings and turn them on or off without changing your code, it is best way of implementing compression within your application.
Answer options D and A are incorrect. These are not valid options.