Re: using php in xhtml

From: Date: Sat, 02 Dec 2000 01:47:02 +0000
Subject: Re: using php in xhtml
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28333@lists.php.net to get a copy of this message
On Fri, 1 Dec 2000, jeremy brand wrote: > In case nobody answered this, just put it in the top of your file. > > PHP only interprets data between <?php (or <?) and ?> as PHP code. > Anything outside of These tags are simply passed through which no > change. Not quite. As you said, PHP interprets any data between <? and ?>. This would include <?xml version="1.0" ?> just as it would include <?echo "Foof" ?> Pete, in order to put <?xml ?> in your PHP documents, you'll need to disable the short_open_tag config option, or print out the <?xml ?> by hand, e.g echo '<?xml version="1.0" ?>'; Matt > On Fri, 1 Dec 2000, Peter Benoit wrote: > > > Date: Fri, 1 Dec 2000 16:33:14 -0500 > > From: Peter Benoit <pbenoit@triton-network.com> > > To: PHP Mailing List <php-general@lists.php.net> > > Subject: [PHP] using php in xhtml > > > > I have an xml declaration at the top of my document. Like <?xml > > version="1.0...?> > > > > How do I handle this in my php file? > > > > > > Thanks, > > Pete > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#28333) next »