php-faq

Cannot modify header information - headers already sent by

Cookies are not saved. What's wrong. Error Warning: Cannot modify header information - headers already sent by (output started at blocksSite/main_noauth.php:4) in blocksSite/main_noauth.php on line 58

How and by what means to find errors in PHP code?

When developing, sometimes the code does not work as intended or does not work at all. I sit and wonder: what is wrong and wh ... nd I want them to to be. Question: what are the ways to find errors in PHP code? What tools, methods, plugins, paths, etc.?