cvs: phpdoc-hu /reference/bzip2/functions bzcompress.xml bzdecompress.xml bzopen.xml bzread.xml
| From: | Cece) Szabolcs | Date: | Sat, 07 Feb 2004 22:02:23 +0000 |
| Subject: | cvs: phpdoc-hu /reference/bzip2/functions bzcompress.xml bzdecompress.xml bzopen.xml bzread.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-440@lists.php.net to get a copy of this message | ||
cece Sat Feb 7 17:02:23 2004 EDT
Modified files:
/phpdoc-hu/reference/bzip2/functions bzread.xml bzopen.xml
bzcompress.xml
bzdecompress.xml
Log:
sync with en revision
http://cvs.php.net/diff.php/phpdoc-hu/reference/bzip2/functions/bzread.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/bzip2/functions/bzread.xml
diff -u phpdoc-hu/reference/bzip2/functions/bzread.xml:1.2
phpdoc-hu/reference/bzip2/functions/bzread.xml:1.3
--- phpdoc-hu/reference/bzip2/functions/bzread.xml:1.2 Wed Apr 17 02:57:50 2002
+++ phpdoc-hu/reference/bzip2/functions/bzread.xml Sat Feb 7 17:02:22 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/bzip2.xml, last change in rev 1.1 -->
<!-- last change to 'bzread' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.2 Maintainer: acsontos Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: acsontos Status: ready -->
<!-- OLD-Revision: 1.16/EN.1.1 -->
<refentry id="function.bzread">
<refnamediv>
@@ -31,9 +31,17 @@
<programlisting role="php">
<![CDATA[
<?php
-$bz = bzopen("/tmp/foo.bz2", "r");
-$str = bzread($bz, 2048);
-print( $str );
+$file = "/tmp/foo.bz2";
+$bz = bzopen($file", "r") or die("Nem sikerült megnyitni: $file");
+
+$kicsomagolt_fajl = '';
+while (!feof($bz)) {
+ $kicsomagolt_fajl .= bzread($bz, 4096);
+}
+bzclose($bz);
+
+echo "A /tmp/foo.bz2 tartalma: <br />\n";
+echo $kicsomagolt_fajl;
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/phpdoc-hu/reference/bzip2/functions/bzopen.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/bzip2/functions/bzopen.xml
diff -u phpdoc-hu/reference/bzip2/functions/bzopen.xml:1.2
phpdoc-hu/reference/bzip2/functions/bzopen.xml:1.3
--- phpdoc-hu/reference/bzip2/functions/bzopen.xml:1.2 Wed Apr 17 02:57:50 2002
+++ phpdoc-hu/reference/bzip2/functions/bzopen.xml Sat Feb 7 17:02:22 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/bzip2.xml, last change in rev 1.1 -->
<!-- last change to 'bzopen' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.2 Maintainer: acsontos Status: ready -->
+<!-- EN-Revision: 1.5 Maintainer: acsontos Status: ready -->
<!-- OLD-Revision: 1.16/EN.1.1 -->
<refentry id="function.bzopen">
<refnamediv>
@@ -16,14 +16,16 @@
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
</methodsynopsis>
<para>
- Megnyit egy bzip2 (.bz2 kiterjesztésû) fájlt olvasásra vagy írásra.
- <parameter>filename</parameter> paraméter a fájl neve, amit ki szeretnénk
nyitni.
+ A <function>bzopen</function> függvény megnyit egy bzip2 (.bz2 kiterjesztésû)
fájlt
+ olvasásra vagy írásra. A <parameter>filename</parameter> paraméter a fájl
neve, amit
+ ki szeretnénk nyitni.
A <parameter>mode</parameter> paraméter hasonlóan mûködik, mint a
<function>fopen</function> függvénynél (
r' - olvasás,
w' - írás, stb.).
</para>
<para>
- Ha a mûvelet sikertelen, akkor &false;-szal (logikai HAMIS), egyébként
- az újonnan megnyitott fájlra mutatóval (file pointer) tér vissza.
+ Ha a mûvelet sikertelen, akkor a <function>bzopen</function> &false;-szal
+ (logikai HAMIS), egyébként az újonnan megnyitott fájlt szimbolizáló mutatóval
+ (file pointer) tér vissza.
</para>
<para>
<example>
@@ -31,13 +33,9 @@
<programlisting role="php">
<![CDATA[
<?php
-$bz = bzopen("/tmp/foo.bz2", "r");
-$tömörített_fájl = bzread($bz, filesize("/tmp/foo.bz2"));
+$file = "/tmp/foo.bz2";
+$bz = bzopen($file, "r") or die("A tömörített fájl megnyitása
sikertelen.");
bzclose($bz);
-
-print( "Íme a /tmp/foo.bz2 tartalma: " );
-print( "\n<br>\n" );
-print( $tömörített_fájl );
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/phpdoc-hu/reference/bzip2/functions/bzcompress.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/bzip2/functions/bzcompress.xml
diff -u phpdoc-hu/reference/bzip2/functions/bzcompress.xml:1.2
phpdoc-hu/reference/bzip2/functions/bzcompress.xml:1.3
--- phpdoc-hu/reference/bzip2/functions/bzcompress.xml:1.2 Wed Apr 17 02:57:50 2002
+++ phpdoc-hu/reference/bzip2/functions/bzcompress.xml Sat Feb 7 17:02:22 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/bzip2.xml, last change in rev 1.1 -->
<!-- last change to 'bzcompress' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.2 Maintainer: acsontos Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: acsontos Status: ready -->
<!-- OLD-Revision: 1.16/EN.1.1 -->
<refentry id="function.bzcompress">
<refnamediv>
@@ -44,7 +44,7 @@
<?php
$str = "minta adat";
$bzstr = bzcompress($str, 9);
-print( $bzstr );
+echo $bzstr;
?>
]]>
</programlisting>
http://cvs.php.net/diff.php/phpdoc-hu/reference/bzip2/functions/bzdecompress.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/bzip2/functions/bzdecompress.xml
diff -u phpdoc-hu/reference/bzip2/functions/bzdecompress.xml:1.2
phpdoc-hu/reference/bzip2/functions/bzdecompress.xml:1.3
--- phpdoc-hu/reference/bzip2/functions/bzdecompress.xml:1.2 Wed Apr 17 02:57:50 2002
+++ phpdoc-hu/reference/bzip2/functions/bzdecompress.xml Sat Feb 7 17:02:22 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/bzip2.xml, last change in rev 1.1 -->
<!-- last change to 'bzdecompress' in en/ tree in rev 1.1 -->
-<!-- EN-Revision: 1.2 Maintainer: acsontos Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: acsontos Status: ready -->
<!-- OLD-Revision: 1.16/EN.1.1 -->
<refentry id="function.bzdecompress">
<refnamediv>
@@ -33,14 +33,14 @@
$start_str = "Hát nem édes pofa?";
$bzstr = bzcompress($start_str);
-print( "A tömörített szting: " );
-print( $bzstr );
-print( "\n<br>\n" );
+echo "A tömörített szting: ";
+echo $bzstr;
+echo "\n<br />\n";
$str = bzdecompress($bzstr);
-print( "A kicsomagolt sztring: " );
-print( $str );
-print( "\n<br>\n" );
+echo "A kicsomagolt sztring: ";
+echo $str;
+echo "\n<br />\n";
?>
]]>
</programlisting>