Re: short_open_tag

From: Date: Tue, 12 Dec 2000 16:07:27 +0000
Subject: Re: short_open_tag
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-40979@lists.php.net to get a copy of this message
Hello, from the manual: short_open_tag boolean Tells whether the short form (<? ?>of PHP's open tag should be allowed. If you want to use PHP in combination with XML, you have to disable this option. If disabled, you must use the long form of the open tag (<?php ?>). Derick On Tue, 12 Dec 2000, Kristian Köhntopp wrote: > > short_open_tags = On > > is leading increasingly to problems if PHP is applied > to XML documents or other documents containing XML > style PIs. The interpreter usually bails out at > <?xml ?> declarations. > > There are two solutions to the problem: > > 1. change php.ini so that by default short_open_tag = Off > > 2. change the parser so that "<? " is a short open tag, > but "<?nonblank" is not. > > Kristian > >

« previous php.dev (#40979) next »