|
ZipArchive::getStreamGet a file handler to the entry defined by its name (read only). Description
resource ZipArchive::getStream
( string
$name
)Get a file handler to the entry defined by its name. For now it only supports read operations. Parameters
Return Values
Returns a file pointer (resource) on success or ExamplesExample #1 Get the entry contents with fread and store it
<?php Example #2 Same as the previous example but with fopen and the zip stream wrapper
<?php Example #3 Stream wrapper and image, can be used with the xml function as well
<?php |