Re: ommiting closeing tag in PHP [message #176655 is a reply to message #176600] |
Mon, 16 January 2012 00:30 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Richard wrote:
> The Natural Philosopher <tnp(at)invalid(dot)invalid> writes:
>> M. Strobel wrote:
>>> Am 10.01.2012 20:56, schrieb Jerry Stuckle:
>>>> And leaving off a closing tag to get round an editor problem is
>>>> just plain sloppy programming. But we already know certain
>>>> people here don't care about that.
>>> He has no editor problem, he can leave the closing tag off. Don't
>>> send him off in a goose chase.
>>>
>>> I knew who would not be comfortable with this easy solution.
>>
>> Only because
>>
>> (a) he didn't know it
>> and
>> (b) I said it was useful.
>>
>> NOTHING is easier than typing a ?> and then following it with a carriage
>> return..
>
> How horrible. Are people really suggesting this hard to spot (when you
> dont know it) hack as a way to develop code? Leaving off closing
> tags?!?!?
Your keyboard is borken.
What exactly is your problem with avoiding the problem caused by adding the
"closing tag"? It is the *P*HP *H*ypertext *P*reprocessor. It is
*supposed* to output any character outside of <?php … ?> sections.
PointedEars
--
Sometimes, what you learn is wrong. If those wrong ideas are close to the
root of the knowledge tree you build on a particular subject, pruning the
bad branches can sometimes cause the whole tree to collapse.
-- Mike Duffy in cljs, <news:Xns9FB6521286DB8invalidcom(at)94(dot)75(dot)214(dot)39>
|
|
|