Zip Function question
I'm looking at setting up a photo gallery online where a user will upload photos via "zip".
I've checked out php.net and figure this is all I need as far as "theory":
[font=Courier New]$zip = zip_open( "myfile.zip" )
or die("Couldn't open zipfile.");
while($entry = zip_read( $zip ))
// do stuff with zipfile entries...
zip_close( $zip );[/font]
Basically, I just want a way for someone to upload a large number of photos via zip. Once on the server, I'll have this file unzipped and I'll create a set of thumbnails and regular size images for viewing. I'll do this during the While Loop.
I just want to know if I'm on the right track or if I'm missing something. All comments and suggestions are welcome.
your only issue is whether the zip extension is enabled on your host , its not really a common one.
There are some zip classes around that dont require the extension though, perhaps google may help there.
you can use exec() as well if zip is on your system.