downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Zlib Functionsgzcompress>
Last updated: Thu, 26 Jun 2008

gzclose

(PHP 4, PHP 5)

gzclose — Close an open gz-file pointer

Description

bool gzclose ( resource $zp )

Closes the given gz-file pointer.

Parameters

zp

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

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 gzclose() example

<?php
$gz
= gzopen('somefile.gz','w9');
gzputs ($gz, 'I was added to somefile.gz');
gzclose($gz);
?>

See Also



add a noteadd a note User Contributed Notes
Close an open gz-file pointer
There are no user contributed notes for this page.




<Zlib Functionsgzcompress>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs