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

<ZipArchive::getCommentIndexZipArchive::getFromIndex>
Last updated: Thu, 26 Jun 2008

ZipArchive::getCommentName

(No version information available, might be only in CVS)

ZipArchive::getCommentName — Returns the comment of an entry using the entry name

Description

string ZipArchive::getCommentName ( string $name [, int $flags ] )

Returns the comment of an entry using the entry name.

Parameters

name

Name of the entry

flags

If flags is set to ZIPARCHIVE::FL_UNCHANGED, the original unchanged comment is returned.

Return Values

Returns the comment on success or FALSE on failure.

Examples

Example #1 Dump an entry comment

<?php
$zip
= new ZipArchive;
$res = $zip->open('test1.zip')
if (
$res === TRUE) {
  
var_dump($zip->getCommentName('test/entry1.txt'));
} else {
   echo
'failed, code:' . $res;
}
?>


add a noteadd a note User Contributed Notes
Returns the comment of an entry using the entry name
There are no user contributed notes for this page.




<ZipArchive::getCommentIndexZipArchive::getFromIndex>
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