1

I am using ob_start('ob_gzhandler') for compressing my script.But the script takes too much time for execution. I added ob_end_flush() method in the callback function of register_shutdown_function() because i can't add ob_end_flush() directly in the code.Is this the problem for the delay? Please give me suggestions to speed up my script.Thank you

Muhammad Hassaan
  • 7,296
  • 6
  • 30
  • 50
ajay
  • 355
  • 3
  • 8
  • 17

1 Answers1

1

Suggestions? Well... Don't use ob_gzhandler, use front-end abilities to zip output - apache, nginx can do this.

Muhammad Hassaan
  • 7,296
  • 6
  • 30
  • 50
OZ_
  • 12,492
  • 7
  • 50
  • 68