PHP Tips and Errors

PHP error: Cannot modify header information

  • After copying a Web project from Windows to Linux the following error comes up
Warning: Cannot modify header information - headers already sent by (output started at 
in /customers/3/7/d/ on line 1207 

From PSR-2 2.2 :

    All PHP files MUST use the Unix LF (linefeed) line ending.
    All PHP files MUST end with a single blank line.
    The closing ?> tag MUST be omitted from files containing only php

Fix : remove closing PHP tag [ ?> ] from parseXML_Wrapper.php


Leave a Reply

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