Reply to Re: commenting ?>

Your name:

Reply:


Posted by Alvaro G. Vicario on 07/07/06 19:14

*** julian_m escribió/wrote (7 Jul 2006 11:35:08 -0700):
> I cant think in any reason why this code fails...
>
> Commented line shuldn't be completely ignored by the parser?
>
> <?php
>
> // ?> whatever

According to manual:

The "one-line" comment styles only comment to the end of the line or the
current block of PHP code, whichever comes first. This means that HTML code
after // ... ?> or # ... ?> WILL be printed: ?> breaks out of PHP mode and
returns to HTML mode, and // or # cannot influence that.

It sounds like the logical option to me.



--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация