fujimoto Mon Jan 14 01:05:36 2002 EDT Modified files: /phpdoc/ja/functions bzip2.xml Log: enclosed programlisting with CDATA. Index: phpdoc/ja/functions/bzip2.xml diff -u phpdoc/ja/functions/bzip2.xml:1.8 phpdoc/ja/functions/bzip2.xml:1.9 --- phpdoc/ja/functions/bzip2.xml:1.8 Mon Jan 14 00:58:03 2002 +++ phpdoc/ja/functions/bzip2.xml Mon Jan 14 01:05:35 2002 @@ -25,7 +25,8 @@ <example> <title>簡単な bzip2 の例</title> <programlisting role="php"> -<?php +<![CDATA[ +<?php $filename = "/tmp/testfile.bz2"; $str = "This is a test string.\n"; @@ -51,6 +52,7 @@ bzclose($bz); ?> +]]> </programlisting> </example> </sect1> @@ -130,9 +132,13 @@ <example> <title><function>bzcompress</function> の例</title> <programlisting role="php"> +<![CDATA[ +<?php $str = "sample data"; $bzstr = bzcompress($str, 9); print $bzstr; +?> +]]> </programlisting> </example> </para> @@ -172,17 +178,19 @@ <example> <title><function>bzdecompress</function></title> <programlisting role="php"> +<![CDATA[ $start_str = "This is not an honest face?"; $bzstr = bzcompress($start_str); print "Compressed String: "; print $bzstr; -print "\n<br>n"; +print "\n<br>\n"; $str = bzdecompress($bzstr); print "Decompressed String: "; print $str; -print "\n<br>n"; +print "\n<br>\n"; +]]> </programlisting> </example> </para> @@ -239,10 +247,14 @@ <example> <title><function>bzerror</function>の例</title> <programlisting role="php"> +<![CDATA[ +<?php $error = bzerror($bz); echo $error["errno"]; echo $error["errstr"]; +?> +]]> </programlisting> </example> </para> @@ -338,13 +350,17 @@ <example> <title><function>bzopen</function> の例</title> <programlisting role="php"> +<![CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); $decompressed_file = bzread($bz, filesize("/tmp/foo.bz2")); bzclose($bz); print "The contents of /tmp/foo.bz2 are: "; -print "\n<br>n"; +print "\n<br>\n"; print $decompressed_file; +?> +]]> </programlisting> </example> </para> @@ -385,9 +401,13 @@ <example> <title><function>bzread</function> の例</title> <programlisting role="php"> +<![CDATA[ +<?php $bz = bzopen("/tmp/foo.bz2", "r"); $str = bzread($bz, 2048); print $str; +?> +]]> </programlisting> </example> </para> @@ -428,10 +448,14 @@ <example> <title><function>bzwrite</function> の例</title> <programlisting role="php"> +<![CDATA[ +<?php $str = "uncompressed data"; $bz = bzopen("/tmp/foo.bz2", "w"); bzwrite($bz, $str, strlen($str)); bzclose($bz); +?> +]]> </programlisting> </example> </para>