PHP
downloads | documentation | faq | getting help | mailing lists | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

zip_open> <zip_entry_open
Last updated: Fri, 14 Nov 2008

view this page in

zip_entry_read

(PHP 4 >= 4.0.7, PHP 5 >= 5.2.0, PECL zip:1.0-1.9.0)

zip_entry_readLit le contenu d'un fichier dans un dossier

Description

string zip_entry_read ( resource $zip_entry [, int $length ] )

zip_entry_read() lit dans un dossier d'archives ouvert.

Liste de paramètres

zip_entry

Un dossier d'archives retourné par la fonction zip_read().

length

Le nombre d'octets à retourner. Si ce paramètre est omis, la fonction tentera de lire 1024 octets.

Note: Ceci doit être la taille non-compressée que vous voulez lire.

Valeurs de retour

Retourne les données lues ou FALSE si la fin du fichier est atteinte.



add a note add a note User Contributed Notes
zip_entry_read
Matt
17-Nov-2005 01:53
When reading from a zip file if the initial call to zip_entry_read() returns false it would be advisable to run mkdir with the file name since it it very likely that the zero length file was a directory and attempts to save the files within the directory will fail if you dont create it first

zip_open> <zip_entry_open
Last updated: Fri, 14 Nov 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites