Re: xml tags interfere with php tags
| From: | Josh Close | Date: | Wed, 01 Sep 2004 20:00:06 +0000 |
| Subject: | Re: xml tags interfere with php tags | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195456@lists.php.net to get a copy of this message | ||
I'll do something similar to this. I don't want to have to turn short
tags off :P
-Josh
On Wed, 1 Sep 2004 12:21:29 -0700, Michal Migurski <mike@teczno.com> wrote:
>
>
> > How do I get an xml tag to work with a php script?
> >
> > <?xml version="1.0"?>
> >
> > php is trying to parse that.
>
> <?= '<'.'?xml version="1.0"?'.'>' ?>
>
> ugly, huh?
>
> I'm not sure if there is a better way, but I use the above to prevent
> erroneous PHP parsing of xml declarations regardless of short_open_tags
> setting, and to keep my text editor's syntax highlighting from being
> fooled.
>
> ----------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html
>
>