File Version Management in PHP (Page 1 of 5 )

We can find many articles related to uploading, viewing, and downloading files. Murali's latest article is written on the basic concept of uploading and managing files, and shows us how to create a magic with a little PHP and MySQL. Learn how to properly manage duplicate files through versioning.
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. Other users of the same system then share this file by viewing or downloading it. What happens when you upload a file that already exists in the remote folder to which you are uploading? While discussing this problem, various other issues arises, 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 for more than once?
This article gives you a solution for all the above problems. I also hope that this article will be useful for you to integrate into your projects.
This article was developed with the following versions of Apache, PHP and MySQL:
- Apache - 1.3.23
- MySQL - 3.23.48
- PHP - 4.1.1
- Operating System: Windows Professional
I welcome your comments to improve the efficiency of the code.
Prerequisites:
To understand this article, you should have a fair knowledge of PHP. To run examples given in your machine, you need Apache, PHP, and MySQL installed and configured.
Next: Program Plan >>
More PHP Articles
More By Murali Dharan