Ad block is installed and active. Please support us by disabling it.
HomeSunday, August 20, 2017, 22:48:08
5

View content in a zip file with PHP

Monday, February 16, 15, 15:28:11, 3 Yaers Ago Via cilipe, Hits: 3005
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

Preg_Match - PHP Form Validation

PHP form validation with preg_match

PHP DateTimeZone

PHP representation of time zone

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

Meta Tags Generator 1.1. PHP Script

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

PHP explode

Explode — Split a string by string.

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL

PHP Forms

FREE PHP forms

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

Email to Friend - PHP Script

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.
About Author

wain

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