DevShed.com has a new article posted this morning about file management in PHP.
We can find many articles related to uploading, viewing, and downloading files. This article is written on the basic concept of uploading and managing files. File uploading is the process of copying the file from your machine to the remote server.
While discussing this problem, other issues arise, such as: Should the program allow the user to restore this file or retain the existing file? If the file exists, then should I copy the file as a new version? How do I manage files, if the user uploads files of same name and type more than once?
They answer all of these questions and more, showing you how to combine the power of MySQL with the standard Unix filesystem to create a simple listing of your files that you can modify, sort, and update quickly and easily. I personally think that this method, with a database to hold the "meta data" for the files is the way to go. Otherwise, you find yourself trying to pull information about the files from the filesystem - not a fun task.




