FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP Zip DIR reader.





moejoe
Hi!

Is there anyways i can upload a ZIP folder - then get the server to read the Directories only in the folder and then display them back to HTML?


Thanks!
grashopa
http://uk2.php.net/manual/en/ref.zip.php

You can use ziparchive. php_zip.dll needs to be enabled on the server, don't know if it is..

Heres a great tutorial.

http://devzone.zend.com/article/2105-Dynamically-Creating-Compressed-Zip-Archives-With-PHP

You'll have to figure out how to grab all the directories though as it iterates through all the files in the zip. Just strip off the file portion and save the directory..
moejoe
I dont want to create a zip.

I simply want the user to upload a zip...

And then give them a list of all the Contents in the Zip. Mainly the Root directories!
Related topics
Script Unzip (very cool)
Script php about gallery
A "small" list of free apps
Php, mime_content_type() problem
[php] secure dir prevents include?
[*RESOLVED*] Please close for me.
Zip archive extraction with PHP
CMS Nedir
How to Install GD in local apache server ? | hELP !!
COFREE de Software
Use php to extract archives
open_basedir restriction...
PHP and ZIP handling
PHP Zip => UNIX compression?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.