• On all of my sites, when I go to edit files such as the wp-config.php, I don’t find a closing “?>” tag at the end of the file.

    In the section “Double Check Before Saving” of the document “Editing wp-config.php“, it specifically says;

    “The last thing in the file should be ?> and nothing else.”

    What I am seeing everywhere are blank lines.
    Is that good, bad, or of no interest?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    There should be no closing ?> tags on PHP files. Why? Because if you have a blank or something after the close, you may wind up with a “headers already sent” error or just odd stuff appearing on screen.

    Thread Starter sakshale

    (@sakshale)

    That makes perfectly good sense to me. I tried searching prior to posting my question, and came up empty. Hopefully, your statement will help others in the future.

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