HomeSaturday, August 18, 2018, 20:19:39
4

View content in a zip file with PHP

Monday, February 16, 15, 15:28:11, 4 Yaers Ago Via cilipe, Hits: 7116
List all files in a zip archive with PHP
Code:
<?php
$getfiles = new ZipArchive();
$getfiles->open('myzipfile.zip');
for($i = 0; $i < $getfiles->numFiles; $i++ ){
$files = $getfiles->statIndex($i);
echo '<pre>';
print_r(basename($files['name']));
echo '</pre>';
}
?>

Sign In

Sponsor

Related

Sending HTML Email With Images - PHP Tutorial

Sending HTML Email With Images - Upload Image with PHP - Creating Dynamic Webpages Using PHP and MySQL - Select, Delete, Update..

Sitemap

phpForm.net Website Sitemap

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.

PHP Forms

FREE PHP forms

PHP Date Examples

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

PHP File Create

Create and write data to a file using the php frwite function.

How to insert new line (IP Address) with fwrite

How to insert new line (IP Address) with fwrite, Get IP address and write to file.

Contact Us 2.0. :: PHP Form

Version 2.0. - A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Sun, Mar 18, 18
So far has created 115 entries.
wain
This author has not yet filled in any details.