PHPでリダイレクトをかける際など、『Warning: Cannot modify header information – headers already sent by ~』というエラーが出てしまう場合があります。 一般的な原因と意外な原因は以下から。