0

I'm using WAMP. And I was wondering why I don't see headers already sent errors on my localhost. I tried using XAMPP but the errors are invisible as well.

As soon as I transfer the website to a live domain I can see the errors.

I tried changing the error_reporting in php.ini to

error_reporting = E_ALL | E_STRICT

I rebooted the WAMP server, but i still don't see the errors. Any ideas? Thanks!

Edit

ob_flush is working, I placed it at the beginning and at the end of the document. It is well explained here How to fix "Headers already sent" error in PHP

But I still would like to see the errors without having to test on a live server.

halfer
  • 19,824
  • 17
  • 99
  • 186
Miguel Stevens
  • 8,631
  • 18
  • 66
  • 125

1 Answers1

1

Compare the 2 sites and look for this setting in the php.ini file being used by Apache.

On Wamp, use the wampmanager menus to make sure you are viewing the correct php.ini.

output_buffering = On

I would imaging that one site has it set off and the other has it set on

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149