FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » this is my code i am not getting images throuh php script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ommiting closeing tag in PHP [Re: this is my code i am not getting images throuh php script] [message #176599 is a reply to message #176598] Tue, 10 January 2012 21:11 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
M. Strobel wrote:
> Am 10.01.2012 20:56, schrieb Jerry Stuckle:
>> On 1/10/2012 11:16 AM, M. Strobel wrote:
>>> 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.
>> Because leaving off the close tag can cause problems later when
>> someone else edits the site, assuming close tags are there.
>>
>> 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..


> /Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: repair SUSE php5 -a
Next Topic: Learn Chinese (Mandarin) faster by using flashcards with pictures
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 10:34:17 GMT 2024

Total time taken to generate the page: 0.04425 seconds