Linux Systems Administrator
Jupitermedia
US-AZ-Tucson

Justtechjobs.com Post A Job | Post A Resume

File Version Management in PHP
Background

We can find many articles related to file upload, view, download, etc. This article is written on this basic concept of uploading and managing files. File upload is a process of copying the file from your machine to the remote server. Other users of the system then share this file by viewing / downloading. What happens when I 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 more than once?

This article gives you a solution for all the above problems and also I hope this article will be useful for you to integrate in your projects.

This article is 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

Prerequisite

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 software installed and configured.

Next Page


Comments:
RE: upload & download files in PHPgaurav05/27/07 09:32
RE: Uploading Filessunny12/13/05 19:15
upload & download files in PHPkarthik06/21/05 03:03
Uploading FilesEdel05/31/05 13:38
upload & download files in PHPsneha04/29/05 03:56
uploading file and viewingsundaravadivel01/20/05 23:39
The scripts doesn't workIna12/08/04 00:36
ummmmmmmmm whats this mummy??Sex Beplaced Ru 12/07/04 09:37
A little suggestion.opryshok03/31/04 04:47
think, this is the right wayOlli02/19/04 11:31
Its Printable view is not displayed correctlySaid Bakr01/15/04 01:46
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.