Cannot modify header information – “headers already sent” PHP error

one can resole this issue by removing extra space before php tag <?php

Example

Fix “headers already sent” using ob_start php function

ob_start — Turn on output buffering

you can use ob_start function after opening PHP tag

Example

Leave a Reply

Your email address will not be published. Required fields are marked *