Re: Re: PHP in HTML code

From: Date: Thu, 18 Mar 2010 17:28:16 +0000
Subject: Re: Re: PHP in HTML code
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.general 
Request: Send a blank email to php-general+get-302981@lists.php.net to get a copy of this message
On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > 2010/3/18 Ashley Sheridan <ash@ashleysheridan.co.uk> > > > I'd rather have short tags turned off than remember each time that I have > > to keep breaking up the < and ?php before I output it in-case the parser > > gets confused. > > > > You don't need to break anything up. It's perfectly valid and without > problems: > > <?php echo '<?xml version.... ?>'; ?> What about this: <?xml version="1.0"> <?php That would break with short tags turned on. I often use this sort of code in my Ajax server stuff. I don't want to have to use PHP to echo out what would work on a normal setup. Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#302981) next »