PHP File Manager

Related Articles

The file manager program is designed to upload and manage files. The files are stored in a predefined folder. There are two files: file_upload_manager.php and file_display_manager.php which performs the file operations. The former handles the file uploading and the later displays the file in the folder and also lets the user to delete the file.

Database Design:

Database Name: upload

CREATE TABLE file_manager (
  file_id mediumint(9) NOT NULL auto_increment,
  file_name varchar(50) default NULL,
  file_type varchar(20) NOT NULL default '',
  file_size varchar(20) NOT NULL default '',
  file_modified varchar(20) NOT NULL default '',
  file_parent_id mediumint(9) default NULL,
  file_image_name varchar(50) default NULL,
  PRIMARY KEY  (file_id),
  KEY file_name (file_name),
  KEY file_image_name (file_image_name)

Predefined / Default Folder:

$dir_path= "C:\apache\htdocs\filemanager\";

Note: You can change the folder path accordingly in file_upload_manager.php and file_display_manager.php

This article comes with a zip folder containing the two PHP files and the text to create the database.

Download supplimentary files (7.03KB)

Publication Date: Wednesday 5th November, 2003
Author: Murali Dhar View profile

Related Articles