Title: PHP: closing ?&gt; is missing
Last modified: August 21, 2017

---

# PHP: closing ?> is missing

 *  [sakshale](https://wordpress.org/support/users/sakshale/)
 * (@sakshale)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-closing-is-missing-2/)
 * 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](https://codex.wordpress.org/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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-closing-is-missing-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-closing-is-missing-2/#post-9428843)
 * 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](https://wordpress.org/support/users/sakshale/)
 * (@sakshale)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/php-closing-is-missing-2/#post-9428865)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [sakshale](https://wordpress.org/support/users/sakshale/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/php-closing-is-missing-2/#post-9428865)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
