Re: difference between <?php and <?

From: Date: Sun, 09 Sep 2001 19:18:50 +0000
Subject: Re: difference between <?php and <?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-66624@lists.php.net to get a copy of this message
The problem comes if you use php to generate xml documents.... in xml you use the tag <?xml.. if php is setup to handle <? then it takes that then throws a parse error as it attempts to read the xml bit. Simplest solution if you are using php to generate xml tags is to always use php to generate those.. ie echo('<?xml....'); works fine ----- Original Message ----- From: "Matthew Loff" <matt@willetts.com> To: <php_guy@ns.visors.com.hk>; <php-general@lists.php.net> Sent: Sunday, September 09, 2001 8:05 PM Subject: RE: [PHP] difference between <?php and <? > > There isn't any difference, if your php.ini settings allow it > (short_tags, I believe), you can use <? instead of <?php > > > > -----Original Message----- > From: php_guy@ns.visors.com.hk [mailto:php_guy@ns.visors.com.hk] > Sent: Sunday, September 09, 2001 2:43 PM > To: php-general@lists.php.net > Subject: [PHP] difference between <?php and <? > > > Hi, > > I am a newbie at this PHP thing and I have been working from information > on the web and from books. > > I noticed that some start the PHP script with <? and some start with > <?php. Actually I have noticed that one of the first PHP script in my > book uses both methods interchangeably. > > Is there a real difference between the two? > > Or maybe I just haven't noticed something. > > Peter > > > -- > 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 (#66624) next »