The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

?> file endings missing (3 posts)

  1. still giving
    Posted 5 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 ?>


  2. esmi
    Forum Moderator
    Posted 5 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
    Posted 5 years ago #


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


Topic Closed

This topic has been closed to new replies.

About this Topic