Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] [message #176593 is a reply to message #176591] |
Tue, 10 January 2012 16:16 |
M. Strobel
Messages: 386 Registered: December 2011
Karma:
|
Senior Member |
|
|
Am 10.01.2012 13:54, schrieb Jerry Stuckle:
> On 1/10/2012 7:33 AM, The Natural Philosopher wrote:
>> Luuk wrote:
>>> On 09-01-2012 23:08, M. Strobel wrote:
>>>> Am 09.01.2012 23:04, schrieb Luuk:
>>>> > On 09-01-2012 21:53, M. Strobel wrote:
>>>> >> Just omit the closing tag in php-only files, it's easier
>>>> >> than the
>>>> >> ob_ functions.
>>>> >>
>>>> >> /Str.
>>>> > If you re-checked, could you also provide us with a link to
>>>> > where you
>>>> > found that info?
>>>> >
>>>> >
>>>> search string was php closing tag
>>>>
>>>> http://www.php.net/manual/en/language.basic-syntax.instruction-separation.p hp
>>>>
>>>>
>>>>
>>>> /Str.
>>>
>>> damn, they actually documented this UGLY feature ;)
>>>
>> Ugly, but damed usefull as my editor has a habit of adding an
>> extra
>> newline to the end of text files.
>>
>
> So get a good editor.
>
Now why should he "get a good editor" if he can omit the closing tag?
/Str.
|
|
|