PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
So after posting some of my code for illustration purposes, hob_goblin pointed out that either the display was cut-off or the file was missing its close '?>'. Looking over my other files, I noticed that I almost never close the php blocks in my libraries/classes. I know that php automatically drops into html mode on a new file so this isn't a real problem.
I could make the arguement that it makes it easier to avoid a stray newline at the end of the file wrecking havoc with later headers.
Or am I just trying to justify laziness/sloppy coding ?
I agree with conthox...it's always a good idea to end them...I mean, y not? Plus, be neat...so also, if u ever want to make changes later, u dont spend hours looking through confusing code to find somethings...
OK I've been a good boy and closed all those missing tags on my dev tree. I hadn't thought of considering it in an xml context, probably because all my files are simply bracketed in the php tags, without switching in and out of html/php mode. Thanks for all the comments.