Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.
I'm curious. It seems like most Unix tools expect there to be a trailing newline at the end of files; I've always been careful to make sure ?> is the last data in a file so that I don't get the dreaded headers already sent warning.
I get the sense that is has always been the case. When the EOF is reached, PHP ends parsing whether in HTML or PHP mode. In class files, using no ?> is the Zend recommendation.
arborint wrote:I get the sense that is has always been the case. When the EOF is reached, PHP ends parsing whether in HTML or PHP mode. In class files, using no ?> is the Zend recommendation.
In Dreamweaver, leaving it out causes the whole file to be highlighted in yellow. I've no idea how to disable that.
Which do you suggest? I used to use one called PHP Editor, but didn't like it. Is there anything similar to Visual Studio? (where it shows you your class structures and such)
superdezign wrote:Which do you suggest? I used to use one called PHP Editor, but didn't like it. Is there anything similar to Visual Studio? (where it shows you your class structures and such)
We're pushing pretty far out of subject with this line of discussion, so might I suggest you read through the novel that is our "editors" thread?