PHP: fix headers already sent at the output source
Summary Find the first output file and line, move header-producing operations ahead of the body, and log production errors without displaying them. Diagnose with headers_sent($filename, $line)
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread php-headers-already-sent-find-premature-output and help me try it