didou Tue Jan 6 09:35:35 2004 EDT
Modified files: /phpdoc/en/faq build.xml html.xml using.xml Log: typos Index: phpdoc/en/faq/build.xml diff -u phpdoc/en/faq/build.xml:1.29 phpdoc/en/faq/build.xml:1.30 --- phpdoc/en/faq/build.xml:1.29 Sat Dec 20 23:21:40 2003 +++ phpdoc/en/faq/build.xml Tue Jan 6 09:35:35 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.29 $ --> +<!-- $Revision: 1.30 $ --> <chapter id="faq.build"> <title>Build Problems</title> <titleabbrev>Build Problems</titleabbrev> @@ -76,8 +76,7 @@ <qandaentry id="faq.build.apache-sharedcore"> <question> <para> - When I try to start Apache, I get the the following - message: + When I try to start Apache, I get the following message: </para> <para> <screen> Index: phpdoc/en/faq/html.xml diff -u phpdoc/en/faq/html.xml:1.24 phpdoc/en/faq/html.xml:1.25 --- phpdoc/en/faq/html.xml:1.24 Fri Dec 12 14:56:01 2003 +++ phpdoc/en/faq/html.xml Tue Jan 6 09:35:35 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> +<!-- $Revision: 1.25 $ --> <chapter id="faq.html"> <title>PHP and HTML</title> <titleabbrev>PHP and HTML</titleabbrev> @@ -49,7 +49,7 @@ <programlisting role="php"> <![CDATA[ <?php - echo "<input type='hidden' value='" . htmlspecialchars($data) . "'>\n"; + echo "<input type='hidden' value='" . htmlspecialchars($data) . "' />\n"; ?> ]]> </programlisting> @@ -141,7 +141,7 @@ the standard submit button with a tag like: <programlisting role="html"> <![CDATA[ -<input type="image" src="image.gif" name="foo"> +<input type="image" src="image.gif" name="foo" /> ]]> </programlisting> When the user clicks somewhere on the image, the accompanying form @@ -172,10 +172,10 @@ elements like this: <programlisting role="html"> <![CDATA[ -<input name="MyArray[]"> -<input name="MyArray[]"> -<input name="MyArray[]"> -<input name="MyArray[]"> +<input name="MyArray[]" /> +<input name="MyArray[]" /> +<input name="MyArray[]" /> +<input name="MyArray[]" /> ]]> </programlisting> Notice the square brackets after the variable name, that's what @@ -183,10 +183,10 @@ by assigning the same name to different elements: <programlisting role="html"> <![CDATA[ -<input name="MyArray[]"> -<input name="MyArray[]"> -<input name="MyOtherArray[]"> -<input name="MyOtherArray[]"> +<input name="MyArray[]" /> +<input name="MyArray[]" /> +<input name="MyOtherArray[]" /> +<input name="MyOtherArray[]" /> ]]> </programlisting> This produces two arrays, MyArray and MyOtherArray, that gets sent @@ -194,10 +194,10 @@ to your arrays: <programlisting role="html"> <![CDATA[ -<input name="AnotherArray[]"> -<input name="AnotherArray[]"> -<input name="AnotherArray[email]"> -<input name="AnotherArray[phone]"> +<input name="AnotherArray[]" /> +<input name="AnotherArray[]" /> +<input name="AnotherArray[email]" /> +<input name="AnotherArray[phone]" /> ]]> </programlisting> The AnotherArray array will now contain the keys 0, 1, email and phone. Index: phpdoc/en/faq/using.xml diff -u phpdoc/en/faq/using.xml:1.28 phpdoc/en/faq/using.xml:1.29 --- phpdoc/en/faq/using.xml:1.28 Sat Dec 20 20:05:37 2003 +++ phpdoc/en/faq/using.xml Tue Jan 6 09:35:35 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> +<!-- $Revision: 1.29 $ --> <chapter id="faq.using"> <title>Using PHP</title> <titleabbrev>Using PHP</titleabbrev> @@ -170,8 +170,8 @@ </question> <answer> <para> - The functions <function>header</function>, <function>setcookie - </function>, and the <link linkend="ref.session">session + The functions <function>header</function>, <function>setcookie</function>, + and the <link linkend="ref.session">session functions</link> need to add headers to the output stream but headers can only be sent before all other content. There can be no output before using these functions, output such as HTML. The function <function> @@ -199,7 +199,7 @@ <?php $headers = getallheaders(); foreach ($headers as $name => $content) { - echo "headers[$name] = $content<br>\n"; + echo "headers[$name] = $content<br />\n"; } ?> ]]>