Re: PHP Tag question

From: Date: Wed, 15 May 2002 22:12:29 +0000
Subject: Re: PHP Tag question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-97833@lists.php.net to get a copy of this message
On Wed, 2002-05-15 at 13:31, Matthew Walker wrote: > I'm writing a coding standards document for our programmers, and I need > to know if the 'echo' shortcut PHP tags are always on, or if we need to > assume they might not be on. > > (By echo shortcut, I mean this syntax: <?=$variable?>) The only guaranteed acceptable open tags are <?php and <script language="php">. If you expect that your code may ever run on a server where you don't control php.ini, you should definitely mandate that short_open_tag = off when developing. BTW--no offense, but this is explained at some length in the manual: http://www.php.net/manual/en/language.basic-syntax.php > Matthew Walker > Senior Software Engineer > ePliant Marketing -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#97833) next »