NYCPHP Meetup

NYPHP.org

[nycphp-talk] Closing ?> tag

Malcolm, Gary gmalcolm at professionalcredit.com
Tue May 20 13:44:43 EDT 2003


the whole idea makes me uncomfortable. like leaving dishes in the sink.

what happens when including unclosed files with mixed html/php?

> -----Original Message-----
> From: D C Krook [mailto:dkrook at hotmail.com]
> Sent: Tuesday, 20 May, 2003 10:41 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] Closing ?> tag
> 
> 
> Greetings,
> 
> I noticed at Zeev's demo of the Zend Studio that he tended to 
> leave off the 
> end ?> tag when writing up sample code.
> 
> 
> In the phpComponents documentation 
> (http://pcoms.net/submit.php), Hans 
> advises leaving it off:
> 
> "Layout: The first line of pCom source should only contain 
> <?php the full 
> opening PHP tag. Closing PHP tags must not be used...The full 
> opening PHP 
> tag <?php should always be used, where as closing tags should 
> never be 
> used."
> 
> 
> On the other hand, Sterling strongly advises that it not be left off 
> (http://lists.php.net/article.php?group=php.lang&article=403):
> 
> "I definitely think that _you_ should do it."
> 
> 
> Is there any rationale for leaving it off?  Style? 
> Performance?  Ensuring 
> that you're keeping logic separate from presentation templates?
> 
> 
> Thanks for any thoughts,
> -Dan
> 
> 
> 
> 
> 
> 
> ==========================================
> Daniel Christer Krook
> http://krook.net/ || http://krook.info/
> http://civet.net/ || http://dev.krook.org/
> 
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE* 
> http://join.msn.com/?page=features/virus
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030520/3ac6a7ff/attachment.html>


More information about the talk mailing list