Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: XML tags are just a cheap rip-off of PHP tags

From: Jasper Bryant-Greene <jasper@bryant-greene.name>
Date: Thu, 23 Jun 2005 17:20:40 +1200
Message-ID: <42BA46A8.6020101@bryant-greene.name>
To: Kelly Miller <lightsolphoenix@gmail.com>
CC: "dagobah1@optonline.net" <dagobah1@optonline.net>, www-html@w3.org

I know this is OT, but just quickly:

It is little known, but the short_open_tag directive is actually a
PHP_INI_PERDIR constant, meaning you can just put the following in a
.htaccess file in the root directory of your application:

php_flag short_open_tag off

And then the short open tag is disabled for your entire application.

Jasper

Kelly Miller wrote:
> 
> True, but that's not always under the PHP author's control.  I never use
> short tags anymore, but I make it a point to echo the prolog in just in
> case.
> 
> Jasper Bryant-Greene wrote:
> 
>> That's correct, it's been around much longer than PHP AFAIK.
>>
>> Also if you turn off short_tags, which is recommended to be off anyway,
>> then you don't even need to echo it.
>>
>> Jasper
>>  
>>
> 
> 
Received on Thursday, 23 June 2005 05:19:58 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.