[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2005-09-13 Thread Friedhelm Betz
betzTue Sep 13 18:39:35 2005 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  rewording, usage of compression.zlib, link to compression wrappers
  
http://cvs.php.net/diff.php/phpdoc/en/reference/zlib/reference.xml?r1=1.15r2=1.16ty=u
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.15 
phpdoc/en/reference/zlib/reference.xml:1.16
--- phpdoc/en/reference/zlib/reference.xml:1.15 Sun Sep  4 07:49:43 2005
+++ phpdoc/en/reference/zlib/reference.xml  Tue Sep 13 18:39:34 2005
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.15 $ --
+!-- $Revision: 1.16 $ --
 !-- Purpose: compression --
 !-- Membership: bundled --
 
@@ -20,20 +20,21 @@
 note
  para
   Version 4.0.4 introduced a fopen-wrapper for .gz-files, so that
-  you can use a special 'zlib:' URL to access compressed files
-  transparently using the normal f*() file access functions if you
-  prepend the filename or path with a 'zlib:' prefix when calling
-  functionfopen/function.
+  you can use a special filenamezlib:/filename URL to access
+  compressed files transparently using the normal f*() file access
+  functions if you prefix the filename or path with
+  filenamezlib:/filename when calling functionfopen/function. This
+  feature requires a C runtime library that provides the
+  literalfopencookie()/literal function. Up to now the GNU libc
+  seems to be the only library that provides this feature.
  /para
  para
-  In version 4.3.0, this special prefix has been changed to 'zlib://'
-  to prevent ambiguities with filenames containing ':'.
- /para
- para
-  This feature requires a C runtime library that provides the
-  literalfopencookie()/literal function. To my current
-  knowledge the GNU libc is the only library that provides
-  this feature.
+  In PHP 4.3.0, filenamezlib:/filename has been changed to
+  filenamecompress.zlib:///filename to prevent ambiguities with
+  filenames containing ':' characters. The
+  literalfopencookie()/literal function is not longer required.
+  More information is available in the section about
+  xref linkend=wrappers.compression /.
  /para
 /note
/section


[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2004-02-27 Thread Mehdi Achour
didou   Fri Feb 27 06:01:37 2004 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  CS and corrected HTML
  
http://cvs.php.net/diff.php/phpdoc/en/reference/zlib/reference.xml?r1=1.13r2=1.14ty=u
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.13 
phpdoc/en/reference/zlib/reference.xml:1.14
--- phpdoc/en/reference/zlib/reference.xml:1.13 Mon Dec 15 11:54:31 2003
+++ phpdoc/en/reference/zlib/reference.xml  Fri Feb 27 06:01:35 2004
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.13 $ --
+!-- $Revision: 1.14 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
@@ -67,7 +67,7 @@
 ![CDATA[
 ?php
 
-$filename = tempnam('/tmp', 'zlibtest').'.gz';
+$filename = tempnam('/tmp', 'zlibtest') . '.gz';
 echo html\nhead/head\nbody\npre\n;
 $s = Only a test, test, test, test, test, test, test, test!\n;
 
@@ -97,7 +97,7 @@
 echo Error with zlib functions!;
 }
 unlink($filename);
-echo /pre\n/h1/body\n/html\n;
+echo /pre\n/body\n/html\n;
 
 ?
 ]]


[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2003-11-24 Thread Sara Golemon
pollita Mon Nov 24 18:37:49 2003 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  gzpassthru() no longer closes zlib streams for us.
  
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.11 
phpdoc/en/reference/zlib/reference.xml:1.12
--- phpdoc/en/reference/zlib/reference.xml:1.11 Mon Dec  2 07:55:46 2002
+++ phpdoc/en/reference/zlib/reference.xml  Mon Nov 24 18:37:49 2003
@@ -1,5 +1,5 @@
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.11 $ --
+!-- $Revision: 1.12 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
@@ -88,6 +88,7 @@
 
 // output until end of the file and close it.
 gzpassthru($zp);
+gzclose($zp);
 
 print \n;
 


[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2002-10-09 Thread Ernani Joppert Pontes Martins

ernani  Thu Oct 10 00:43:48 2002 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  Updade Translation
  
  
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.8 
phpdoc/en/reference/zlib/reference.xml:1.9
--- phpdoc/en/reference/zlib/reference.xml:1.8  Mon Sep 16 16:46:37 2002
+++ phpdoc/en/reference/zlib/reference.xml  Thu Oct 10 00:43:47 2002
 -1,36 +1,36 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.8 $ --
+!-- EN-Revision: 1.11 Maintainer: ernani Status: ready --
  reference id=ref.zlib
-  titleZlib Compression Functions/title
+  titleFunções de Compressão Zlib/title
   titleabbrevZlib/titleabbrev
 
   partintro
section id=zlib.intro
 reftitle.intro;
 para
- This module enables you to transparently read and write
- gzip (.gz) compressed files, through versions of most of
- the link linkend=ref.filesystemfilesystem/link functions
- which work with gzip-compressed files (and uncompressed files,
- too, but not with sockets).
+ Este módulo lhe possibilita ler e gerar transparentemente
+ arquivos comprimidos do tipo gzip (.gz), através de muitas das
+ funções link linkend=ref.filesystemfilesystem/link
+ nas quais funcionam com arquivos gzip comprimidos (e arquivos não comprimidos
+ também, mas não com sockets).
 /para
 note
  para
-  Version 4.0.4 introduced a fopen-wrapper for .gz-files, so that
-  you can use a special 'zlib:' URL to access compressed files
-  transparently using the normal f*() file access functions if you
-  prepend the filename or path with a 'zlib:' prefix when calling
+  A Versão 4.0.4 introduziu a função fopen-wrapper para arquivos .gz, então
+  você pode usar o prefixo 'zlib:' especial para acessar arquivos comprimidos
+  transparentemente usando as funções normais de acesso a arquivos f*() se
+  você concatenar o nome do arquivo e ou seu caminho com o prefixo 'zlib:' quando 
+usar a função
   functionfopen/function.
  /para
  para
-  In version 4.3.0, this special prefix has been changed to 'zlib://'
-  to prevent ambiguities with filenames containing ':'.
+  Na versão 4.3.0, este prefixo especial foi mudado para 'zlib://'
+  para previnir ambiguidades com nome de arquivos contendo ':'.
  /para
  para
-  This feature requires a C runtime library that provides the
-  literalfopencookie()/literal function. To my current
-  knowledge the GNU libc is the only library that provides
-  this feature.
+  Esta facilidade requer uma biblioteca em tempo de execução que provê a função
+  literalfopencookie()/literal. Em meu conhecimento atual
+  a GNU libc é a única bliblioteca que provê
+  esta facilidade.
  /para
 /note
/section
 -38,9 +38,9 
section id=zlib.requirements
 reftitle.required;
 para
- This module uses the functions of ulink url=url.zlib;zlib/ulink
- by Jean-loup Gailly and Mark Adler. You have to use a zlib
- version gt;= 1.0.9 with this module.
+ Este módulo usa as funções da ulink url=url.zlib;zlib/ulink
+ por Jean-loup Gailly e Mark Adler. Você terá que usar uma versão zlib
+ gt;= à 1.0.9 com este módulo.
 /para
/section
 
 -56,42 +56,42 
section id=zlib.examples
 reftitle.examples;
 para
- This example opens a temporary file and writes a test string 
- to it, then it prints out the content of this file twice.
+ Este exemplo abre um arquivo temporário e gera uma string teste
+ dentro dele, então ela mostra o conteúdo deste arquivo duas vezes.
 /para
 example
- titleSmall Zlib Example/title
+ titlePequeno Exemplo das funções Zlib/title
  programlisting role=php
 ![CDATA[
 ?php
 
-$filename = tempnam ('/tmp', 'zlibtest').'.gz';
+$filename = tempnam ('/tmp', 'zlibteste').'.gz';
 print html\nhead/head\nbody\npre\n;
-$s = Only a test, test, test, test, test, test, test, test!\n;
+$s = Somente um teste, teste, teste, teste, teste, teste, teste, teste!\n;
 
-// open file for writing with maximum compression
+// abre o arquivo para gerar ele com a compressão máxima
 $zp = gzopen($filename, w9);
 
-// write string to file
+// escreve a string no arquivo
 gzwrite($zp, $s);
 
-// close file
+// fecha o arquivo
 gzclose($zp);
 
-// open file for reading
+// abre o arquivo para leitura
 $zp = gzopen($filename, r);
 
-// read 3 char
+// lê 3 caracteres
 print gzread($zp, 3);
 
-// output until end of the file and close it.
+// mostra o conteúdo até o fim do arquivo e o fecha.
 gzpassthru($zp);
 
 print \n;
 
-// open file and print content (the 2nd time).
+// abre o arquivo e imprime o conteúdo dele (pela segunda vez).
 if (readgzfile($filename) != strlen($s)) {
-echo Error with zlib functions!;
+echo Erro com as funções zlib!;
 }
 unlink($filename);
 print /pre\n/h1/body\n/html\n;



-- 
PHP 

[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2002-08-03 Thread Gabor Hojtsy

gobaSat Aug  3 12:09:14 2002 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  Entity reference corrected, reported by xsltproc
  
  
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.6 
phpdoc/en/reference/zlib/reference.xml:1.7
--- phpdoc/en/reference/zlib/reference.xml:1.6  Sun Jul 28 13:22:09 2002
+++ phpdoc/en/reference/zlib/reference.xml  Sat Aug  3 12:09:13 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.6 $ --
+!-- $Revision: 1.7 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -92,7 +92,7 
   listitem
para
 Whether to transparently compress pages. If this option is set
-to On in php.ini or the Apache configuration, pages are
+to On in php.ini; or the Apache configuration, pages are
 compressed if the browser sends an Accept-Encoding: gzip or
 deflate header. Content-Encoding: gzip (respectively
 deflate) and Vary: Accept-Encoding headers are added to



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2002-07-28 Thread Stefan Roehrich

sr  Sun Jul 28 13:22:09 2002 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  Added documentation of zlib runtime configuration options.
  
  
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.5 
phpdoc/en/reference/zlib/reference.xml:1.6
--- phpdoc/en/reference/zlib/reference.xml:1.5  Sat Jul 20 08:26:06 2002
+++ phpdoc/en/reference/zlib/reference.xml  Sun Jul 28 13:22:09 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.5 $ --
+!-- $Revision: 1.6 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -46,7 +46,85 
 
section id=zlib.configuration
 reftitle.runtime;
-no.config;
+para
+ The zlib extension offers the option to transparently compress
+ your pages on-the-fly, if the requesting browser supports
+ this. Therefore there are two options in the link
+ linkend=configuration.fileconfiguration file/link php.ini;.
+
+ table
+  titleZlib Configuration Options/title
+  tgroup cols=3
+   thead
+row
+ entryName/entry
+ entryDefault/entry
+ entryChangeable/entry
+/row
+   /thead
+   tbody
+row
+ entryzlib.output_compression/entry
+ entry0/entry
+ entryPHP_INI_ALL/entry
+/row
+row
+ entryzlib.output_compression_level/entry
+ entry-1/entry
+ entryPHP_INI_ALL/entry
+/row
+   /tbody
+  /tgroup
+ /table
+
+ For further details and definition of the PHP_INI_* constants see
+ functionini_set/function.
+   /para
+
+   para
+Here is a short explanation of the configuration directives.
+variablelist
+ varlistentry id=ini.zlib.output_compression
+  term
+   parameterzlib.output_compression/parameter
+   typeboolean/type/typeinteger/type
+  /term
+  listitem
+   para
+Whether to transparently compress pages. If this option is set
+to On in php.ini or the Apache configuration, pages are
+compressed if the browser sends an Accept-Encoding: gzip or
+deflate header. Content-Encoding: gzip (respectively
+deflate) and Vary: Accept-Encoding headers are added to
+the output.
+   /para
+   para
+You can use functionini_set/function to disable this in
+your script if the headers aren't already sent. If you output
+a Content-Type: image/ header the compression is disabled,
+too (in order to circumvent a Netscape bug). You can reenable
+it, if you add ini_set('zlib.output_compression', 'On')
+after the header call which added the image content-type.
+   /para
+   para
+This option also accepts integer values instead of boolean
+On/Off, using this you can set the output buffer size.
+   /para
+  /listitem
+ /varlistentry
+ varlistentry id=ini.zlib.output_compression_level
+  term
+   parameterzlib.output_compression_level/parameter
+   typeinteger/type
+  /term
+  listitem
+   para
+Compression level used for transparent output compression.
+   /para
+  /listitem
+ /varlistentry
+/variablelist
+/para
/section
 
section id=zlib.resources



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml

2002-05-27 Thread Friedhelm Betz

betzMon May 27 06:21:25 2002 EDT

  Modified files:  
/phpdoc/en/reference/zlib   reference.xml 
  Log:
  entity correction
  
Index: phpdoc/en/reference/zlib/reference.xml
diff -u phpdoc/en/reference/zlib/reference.xml:1.2 
phpdoc/en/reference/zlib/reference.xml:1.3
--- phpdoc/en/reference/zlib/reference.xml:1.2  Mon Apr 15 17:57:31 2002
+++ phpdoc/en/reference/zlib/reference.xml  Mon May 27 06:21:24 2002
 -1,5 +1,5 
 ?xml version=1.0 encoding=iso-8859-1?
-!-- $Revision: 1.2 $ --
+!-- $Revision: 1.3 $ --
  reference id=ref.zlib
   titleZlib Compression Functions/title
   titleabbrevZlib/titleabbrev
 -8,7 +8,7 
This module uses the functions of ulink
url=url.zlib;zlib/ulink by Jean-loup Gailly and Mark Adler to
transparently read and write gzip (.gz) compressed files. You have
-   to use a zlib version = 1.0.9 with this module.
+   to use a zlib version gt;= 1.0.9 with this module.
   /para
   para
This module contains versions of most of the link