open(dirname(__FILE__) . '/test.zip'); $fp = $z->getStream('test'); var_dump($fp); if(!$fp) exit("\n"); while (!feof($fp)) { $contents .= fread($fp, 2); } fclose($fp); file_put_contents('t',$contents); echo "done.\n";