Is that normal?
i’ll see a file w/a an opening <? but not a closing ?>
D
Yes. Quite often a file that contains only php code will not have a closing ?>.
this would seem like a bad practice to me…or is it normal?
D
Often on included files you can or could leave off the closing tag to avoid headers being sent by having any space between closing and opening tags.
no i get that.
but is see files that are self contained. not cut off and they are not closed by delimiters.
oh well. guess it’s normal.
D
It’s not “normal” to me, but then I tend to prefer “strictness” eg. I like XHTML and HTML5 feels like a step backwards into allowing “sloppy” mark-up.
But neither of my preferences are “musts” and both ways are acceptable.
2 Likes
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.