PDA

View Full Version : Zip archive question...



Luckyrare
10-02-2007, 10:40 PM
OK, now I want to list the contents of a zip file on php. How would I go about this?

Ive had a look at php.net and had a browse though google but the only thing I can do is show the contents of a file in the zip file. I just want to list its names

eg.

This archive contains 2 files:
- /folder/file.php
- /folder/1/file.php

Any links or codes will be appreciated and rep will be given.

Thanks

timROGERS
11-02-2007, 09:08 AM
http://articles.techrepublic.com.com/5100-3513_11-6125204.html

Should be able to do it from what's there.

Luckyrare
11-02-2007, 12:35 PM
mmm

Thats pretty good but I am finding it quite hard to just show the "filename".

Showing it as:

filename: css/image-slideshow.css
stored_filename: css/image-slideshow.css
size: 1889
compressed_size: 766
mtime: 1149402668
comment:
folder:
index: 1
status: ok

nets
13-02-2007, 11:52 AM
$f['filename']

Want to hide these adverts? Register an account for free!