I was looking up the zip function in php, and wasn't able to find a solution to my problem.
I will be receiving regular datafeeds in zip format and each is password protected. I'd like to ftp the files into a webserver directory and unzip it and compile the data to the database. But the zip password seems to be a catch. Is it possible to fix this?
Ron
What OS are you uploading the file to? The first thing that comes to mind:
Use a webpage to upload the file, and in the form have a textbox for the password. Then upon completion of the upload, use a system() call and pass it the password variable.
Andy,
This is on a linux box. I want to make this automated and put into a crontab.
Thanks for the input, I'll check out the system() call.
cron is totally different.
Just write out a script to do it, then call the script.
this assumes the filename will always be the same...
of course, you could use wildcards...
unzip .zip mv .zip *.bak
or the sort.