Viewing 2 replies - 1 through 2 (of 2 total)
  • Note the following from the official PHP documentation:

    Note: The closing tag of a PHP block at the end of a file is optional, and in some cases omitting it is helpful when using include() or require(), so unwanted whitespace will not occur at the end of files, and you will still be able to add headers to the response later. It is also handy if you use output buffering, and would not like to see added unwanted whitespace at the end of the parts generated by the included files.

    ref. – http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php

    All that said, I just checked my most heavily used WordPress site and wp-config.php ends with ?> but wp-config-sample.php does not. Go figure!

    Truth be told, I have seen problems with “whitespace” after ?> in a php file in WordPress.

    Thread Starter robine

    (@robine)

    Ahh, thanks abunch. I am having trouble with updating automaticly, thought this could be the problem..

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

The topic ‘Config file, legitimate question’ is closed to new replies.