PHP
  Home arrow PHP arrow File Version Management in PHP
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

File Version Management in PHP
By: Murali Dharan
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 43
    2003-12-08

    Table of Contents:
  • File Version Management in PHP
  • Program Plan
  • Let's Build It
  • Let's Build It, Cont'd.
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    File Version Management in PHP


    (Page 1 of 5 )

    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.

    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.

    More PHP Articles
    More By Murali Dharan


       · You are specifiying Windows as requirement, but I dont see why an OS should be a...
     

    PHP ARTICLES

    - 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
    - PHP Frontend to ImageMagick
    - Using PEAR's mimeDecode Module
    - Incoming Mail and PHP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek