Jump to content

missing "?>"; is this any concern?


hunt.tw

Recommended Posts

Hi all,

I just download PS v1.3.7 and I found there are total 363 out of 904 files of "*.php" are missing "?>" on their end. I just wonder are these missing on purpose? Or do these missed "php closing" would cause any usage concern?

Hunt Chang

Link to comment
Share on other sites

It is better not to have the closing php tags. This ensures that if you accidentally add some text at the end or a virus does that, it won't be displayed. If you add a closing tag and you get a virus, any text it appends to the php files will be displayed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...