short_open_tag:

- Can use <?php echo '<?xml version="1.0"'; ?> for xml if on
 - <?= won't work if off
 - <?xml works inline if short_open_tag if off


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@87535 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Philip Olson 2002-07-03 02:29:14 +00:00
parent 649707bdfd
commit c1d2b0f1b4

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.58 $ -->
<!-- $Revision: 1.59 $ -->
<chapter id="configuration">
<title>Configuration</title>
@ -743,7 +743,7 @@ include_path=".;c:\www\phplib"
</note>
</listitem>
</varlistentry>
<varlistentry id="ini.short-open-tag">
<term>
<parameter>short_open_tag</parameter>
@ -753,9 +753,20 @@ include_path=".;c:\www\phplib"
<para>
Tells whether the short form (<userinput>&lt;? ?&gt;</userinput>)
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
(<userinput>&lt;?php ?&gt;</userinput>).</para>
combination with XML, you can disable this option in order to
use (<userinput>&lt;?xml ?&gt;</userinput> inline. Otherwise, you
can print it with PHP, for example: <userinput>&lt;?php echo '&lt;?xml
version="1.0"'; ?&gt;</userinput>. Also if disabled, you must use the
long form of the PHP open tag (<userinput>&lt;?php ?&gt;</userinput>).
</para>
<note>
<para>
This directive also affects the shorthand <userinput>&lt;?=</userinput>,
which is identical to <userinput>&lt;? echo</userinput>. Use of this
shortcut requires <systemitem role="directive">short_open_tag</systemitem>
to be on.
</para>
</note>
</listitem>
</varlistentry>