Home arrow PHP arrow File Version Management in PHP
PHP

File Version Management in PHP


PHPWe 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.

Author Info:
By: Murali Dharan
Rating: 4 stars4 stars4 stars4 stars4 stars / 51
December 08, 2003
TABLE OF CONTENTS:
  1. · File Version Management in PHP
  2. · Program Plan
  3. · Let's Build It
  4. · Let's Build It, Cont'd.
  5. · Conclusion

print this article
SEARCH DEVARTICLES

File Version Management in PHP
(Page 1 of 5 )

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.


blog comments powered by Disqus
PHP ARTICLES

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials