didou Wed Jul 16 13:25:02 2003 EDT
Modified files:
/phpdoc/en/reference/zlib/functions gzopen.xml gzread.xml
Log:
adding PHP tags in the examples
Index: phpdoc/en/reference/zlib/functions/gzopen.xml
diff -u phpdoc/en/reference/zlib/functions/gzopen.xml:1.3
phpdoc/en/reference/zlib/functions/gzopen.xml:1.4
--- phpdoc/en/reference/zlib/functions/gzopen.xml:1.3 Sun Aug 25 12:51:47 2002
+++ phpdoc/en/reference/zlib/functions/gzopen.xml Wed Jul 16 13:25:02 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/zlib.xml, last change in rev 1.2 -->
<refentry id="function.gzopen">
<refnamediv>
@@ -46,7 +46,9 @@
<title><function>gzopen</function> Example</title>
<programlisting role="php">
<![CDATA[
+<?php
$fp = gzopen ("/tmp/file.gz", "r");
+?>
]]>
</programlisting>
</example>
Index: phpdoc/en/reference/zlib/functions/gzread.xml
diff -u phpdoc/en/reference/zlib/functions/gzread.xml:1.3
phpdoc/en/reference/zlib/functions/gzread.xml:1.4
--- phpdoc/en/reference/zlib/functions/gzread.xml:1.3 Sun Aug 25 12:52:39 2002
+++ phpdoc/en/reference/zlib/functions/gzread.xml Wed Jul 16 13:25:02 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<!-- splitted from ./en/functions/zlib.xml, last change in rev 1.2 -->
<refentry id="function.gzread">
<refnamediv>
@@ -21,17 +21,20 @@
or EOF is reached, whichever comes first.
</simpara>
<para>
- <informalexample>
+ <example>
+ <title><function>gzread</function> example</title>
<programlisting role="php">
<![CDATA[
+<?php
// get contents of a gz-file into a string
$filename = "/usr/local/something.txt.gz";
$zd = gzopen ($filename, "r");
$contents = gzread ($zd, 10000);
gzclose ($zd);
+?>
]]>
</programlisting>
- </informalexample>
+ </example>
</para>
<simpara>
See also <function>gzwrite</function>, <function>gzopen</function>,
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php