I think that's what he meant by "escape it". I haven't used short_open_tags
myself much, but as I've been exploring templating options I like it for
outputting variables.
James Logsdon


On Mon, Apr 13, 2009 at 2:24 PM, Kalle Sommer Nielsen <ka...@php.net> wrote:

> 2009/4/13 Jeremy <jer...@pinacol.com>:
> > Glen wrote:
> >>
> >> It's short, and it doesn't conflict with XML.
> >>
> >
> > I have to say, I don't understand all the hate on short_open_tag.  So
> what
> > if it "conflicts" with XML?  PHP is not XML.  If you use an XML construct
> in
> > your PHP, escape it.  PHP can generate a lot of other languages, too --
> > should every construct from these languages be forbidden in PHP as well?
>
> Thats because with short_open_tags on, you need to use:
> <?php echo('<?xml ... ?>'); ?>
>
> to print the XML declaring, with short open tags, the xml part is
> considered a piece of code, which causes a syntax error
>
> >
> > Jeremy
> >
> > --
> > PHP Internals - PHP Runtime Development Mailing List
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> Kalle Sommer Nielsen
> ka...@php.net
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Reply via email to