php-resource

PHP Handbuch

gzpassthru

gzpassthru

(PHP 3, PHP 4, PHP 5)

gzpassthru --  Output all remaining data on a gz-file pointer

Beschreibung

int gzpassthru ( resource zp )

Reads to EOF on the given gz-file pointer from the current position and writes the (uncompressed) results to standard output.

Anmerkung: You may need to call gzrewind() to reset the file pointer to the beginning of the file if you have already written data to it.

Tipp: If you just want to dump the contents of a file to the output buffer, without first modifying it or seeking to a particular offset, you may want to use the readgzfile() function, which saves you the gzopen() call.

Parameter Liste

zp

The gz-file pointer. It must be valid, and must point to a file successfully opened by gzopen().

Rückgabewerte

The number of uncompressed characters read from gz and passed through to the input, or FALSE on error.

Beispiele

Beispiel 1. gzpassthru() example

<?php
$fp
= gzopen('file.gz', 'r');
gzpassthru($fp);
gzclose($fp);
?>



Anmerkungen zum PHP Handbuch
Neue Anmerkung schreiben
 



 

Neuzugänge PHP MySQL Tutorials

Joomla! Starterhilfe

Dieses Tutorial begleitet Sie bei dem Einstieg in die Welt von dem CMS Joomla!.

17.01.2012 werninator | Kategorie: MySQL
Objektorientiertes Programmieren

Dieses Tutorial beschreibt sehr gut die Wirkunsweise von objektorientiertes Programmieren. Also bestens geeignet um das objektorientierte Programmieren zu verstehen.

07.12.2010 phpsven | Kategorie: PHP
Tutorials zu Facebook Anwendungen mit PHP

In mehreren Tutorials wird der Zugriff auf Facebook Daten mittels Graph API, FQL und REST API erklärt. Alle Codebeispiele liegen zum Ausprobieren in einem SVN, bzw. github Repository bereit.

06.12.2010 abouttheweb | Kategorie: PHP