Upload & Extract ZIP File
Thursday, 7. December 2006, 11:13:49
I have a client who has a huge bunch of articles on his local computer which is being created on a regular basis. He wanted to somehow get these articles into his database in order to display on his site without having to process each and every article individually.
So I came to the conclusion that I need to make a simple, yet user-friend interface to allow my client to upload a single '.zip' file containing all the articles and let the script do the rest.
Anyhow...it was just a nice little script to code, since the '.zip' file had to be uploaded, extracted and then each file had to be read, stripped and assigned to variables for insertion into the database.
It turned out a success, and I learned a few things in the process as well. Don't ya just love learning?















