Support » Fixing WordPress » ?> file endings missing

  • I am not a php coder, excuse me for having to ask.

    We know that often problems arise (or used to arise) from white space at the end of the .php files that make up WP where carriage returns must be.

    I notice that not all .php files have the usual ending ?> that I expect, including wp-config.php.

    Is this intentional … is this critical … is this a rule … are they ended somewhere else, or should all .php files not end with a ?>

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Forum Moderator

    Is this intentional

    Yes. The closing ?> isn’t necessary and omitting it sidesteps the issues that arise from white space at the end of files.

    Thanks.

    Is this universal then? Should all have no ending … or are there files required to close the code?

    Appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘?> file endings missing’ is closed to new replies.