Re: bug in code - can't find it!

From: Date: Thu, 07 Aug 2003 13:03:50 +0000
Subject: Re: bug in code - can't find it!
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-158646@lists.php.net to get a copy of this message
Is it realy so? I remember someone noting on this list it also work if short tags are off. I have never tested it and I'm not going to restart our server now, but I will try it at home. John W. Holmes wrote:
AciD wrote:
just a little point; u can replace <?echo $search_result2[a.retired_flag]?> by <?=$search_result2[a.retired_flag]?> which is better imho.
and you're entitled to it, but it's not better. Shorter isn't always better. Your code will break if enable_short_open_tags is disabled in php.ini or an .htaccess file. Sure, it's on by default, but some people turn it off, especially when dealing with XML a lot.


« previous php.general (#158646) next »