Re: How do I display the script file name?

From: Date: Thu, 27 Feb 2003 18:01:15 +0000
Subject: Re: How do I display the script file name?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-137443@lists.php.net to get a copy of this message
The <?xml tag not being allowed outside of PHP tags in one example. Code that relies on short tags also causes problems with portability, since it can't be moved to a server with short tags turned off. Jason k Larson wrote:
I disagree. While I tend to stay away from short tags in general, the use of the short echo tag has yet to cause any trouble for me. And it makes code exceptionally easier to read, which proves to be a valueable asset. Maybe you could provide and example where a short tag is causing some trouble. I'd like to see that. That is, unless it's not a PHP behavior problem, but a scripting or logic issue due to poor development. -- Jason k Larson Leif K-Brooks wrote:
I think you mean worse. Short tags cause nothing but trouble. Jason k Larson wrote:
or even better: <?=__FILE__;?>
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#137443) next »