cvs: phpdoc /en/faq using.xml

From: Date: Sun, 16 Mar 2003 23:24:47 +0000
Subject: cvs: phpdoc /en/faq using.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969352242@lists.php.net to get a copy of this message
philip Sun Mar 16 18:24:47 2003 EDT Modified files: /phpdoc/en/faq using.xml Log: WS and <?php tags Index: phpdoc/en/faq/using.xml diff -u phpdoc/en/faq/using.xml:1.21 phpdoc/en/faq/using.xml:1.22 --- phpdoc/en/faq/using.xml:1.21 Tue Feb 4 04:38:22 2003 +++ phpdoc/en/faq/using.xml Sun Mar 16 18:24:47 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <chapter id="faq.using"> <title>Using PHP</title> <titleabbrev>Using PHP</titleabbrev> @@ -64,12 +64,16 @@ When I do the following, the output is printed in the wrong order: <programlisting role="php"> +<![CDATA[ +<?php function myfunc($argument) { echo $argument + 10; } $variable = 10; echo "myfunc($variable) = " . myfunc($variable); +?> +]]> </programlisting> what's going on? </para> @@ -148,10 +152,12 @@ of code will show you all the request headers: <programlisting role="php"> <![CDATA[ +<?php $headers = getallheaders(); foreach ($headers as $name => $content) { echo "headers[$name] = $content<br>\n"; } +?> ]]> </programlisting> </para> @@ -219,9 +225,8 @@ <para> You need to turn off the short tags by setting <link linkend="ini.short-open-tag">short_tags</link> to 0 in your - &php.ini; file, or by using the appropriate - Apache directive. You could even use a &lt;File&gt; section to - do this selectively. + &php.ini; file, or by using the appropriate Apache directive. You could + even use a &lt;File&gt; section to do this selectively. </para> </answer> </qandaentry>

« previous php.doc (#969352242) next »