YourNameHere Posted July 23, 2009 Share Posted July 23, 2009 I need someone to explain to me how this works. just the fundamental stuff. I have read a few tutorials on the subject and they all have assumed knowledge that I don't have. This is what I eventually need to do: -User uploads a file to the server. -User of higher role logs on and downloads a group of these files in zip format. simple? I would thing so according to the tutorials but My question is this, When uploading do I need a script that creates a new directory each month? (these are monthly reports that are uploaded) then delete it upon downloading? Quote Link to comment Share on other sites More sharing options...
Psycho Posted July 23, 2009 Share Posted July 23, 2009 So, you want us to explain to you in a forum post what you are not understanding from a tutorial? I'm not even clear on what you want to know based upon your post. The title and the beginning of your post implies you need info about creating a zip archive. But, then you specifically ask about what to do with the files that are uploaded. I'm not sure what that has to do with zip archives. Are you saying that you want to create a zip archive of the uploads based upon month? That is up to you and has nothing to do with the functionality to "zip" the files into an archive. However, the logic to select the right files would be easier if the files were already grouped into folders based upon the ones you woulod want in an archive. But, YOU need to decide if that is appropriate for all the ways you may use these files. When you create an archive you will use the appropriate logic to determine which files to add to the archive. This could be by including all files in a folder, by file name, by database attributes, etc., etc. In other words, we can't answer this for you. Putting all the files in a folder by month sounds like a good idea to me, but without knowing ALL the usages for these files that is just a guess. Quote Link to comment Share on other sites More sharing options...
YourNameHere Posted July 23, 2009 Author Share Posted July 23, 2009 Sorry for the unclear question. Yes i need to know what the best setup for this senario is. To zip all of the files in the folder that was created for a specific month. You pretty much answered my question though thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.