WordPress.org

Ready to get started?Download WordPress

Forums

?> file endings missing (3 posts)

  1. still giving
    Member
    Posted 3 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  3. still giving
    Member
    Posted 3 years ago #

    Thanks.

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

    Appreciated.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags