Important alert: (current site time 7/15/2013 11:20:04 AM EDT)
 

winzip icon

Php Win2k File Manager

Email
Submitted on: 6/19/2003 12:30:24 AM
By: Ken Loke Kuo Sern  
Level: Intermediate
User Rating: By 19 Users
Compatibility: PHP 4.0
Views: 25449
author picture
 
     Vote for me, if you think this code is good and useful to you. Full Version File Manager for people whom have installed PHP on win2k server or pro OS. You can easily changed the PHP functions to suit LINUX server. Here are the functions available: 1. Uploading of Files - Allows you to upload 5 files at a time. Changeable to upload more files at a time. Uploading files are scanned by Norton AntiVirus. (Only if install on the Win OS) 2. Deleting of Files - Able to delete files by selection or by all. Configure the include file and allows you to switch off the delete option. 3. Create Folder - Allows you to create folder at any point. 4. Delete Folder - Able to delete a folder with or without files inside. 5. Edit Files - Allows you to edit "acceptable format" files online. 6. Unzip Zip File - Able to unzip any ".zip" file on the same folder or into a new folder. 7. File and Folder Icon - Display standard file and folder icon for all files and folder, for easy recognation of types.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments
6/20/2003 7:17:40 PM[xeon]

Great code, 5 globes from me
(If this comment was disrespectful, please report it.)

 
6/20/2003 10:14:14 PM

thanks xeon... for your votes.. hope that you have no problem installing it..
(If this comment was disrespectful, please report it.)

 
6/26/2003 10:55:12 AMTaylor K.

definatly surperior codeing
(If this comment was disrespectful, please report it.)

 
8/16/2003 10:29:23 AMTerry L

Your code is the best I have seen for file management and uploading. I am new to PHP and it seems that your code is the only code I could get to work on the web site. Thank you for shareing the code. 5 globes and only wish I could give you more.
(If this comment was disrespectful, please report it.)

 
8/16/2003 12:51:32 PMKen Loke Kuo Sern

heheheee.. thanks Terry, for your support! I believe if a site is meant to submit or share codes around, I wish it will be a workable version.. Therefore, not to disappoint anyone, I have uploaded the entire codes...
Cheers!
(If this comment was disrespectful, please report it.)

 
9/1/2003 9:08:48 PM

Is there a way to remove the 8 meg upload barrier?
(If this comment was disrespectful, please report it.)

 
9/2/2003 1:38:35 PMKen Loke Kuo Sern

look for this lin "upload_max_filesize = 5M" in the php.ini file install in your server.. this will control how big the file size you want for uploading at a single time
(If this comment was disrespectful, please report it.)

 
9/9/2003 3:45:47 PM

Thanx, problem fixed :) Next time Ill remember to RTFM. However, I have a new problem. I've been trying to append the code to include functionality for multiple users. Ive been using $_SERVER["REMOTE_USER"]; and Simple authentication to communicate the use user name. Ive added $_SERVER["REMOTE_USER"] to the $ROOTPATH and $ROOTURL to the path.ini:

$mruser = $_SERVER["REMOTE_USER"];
$ROOTPATH = "F:/Users/web/".$mruser;
$ROOTURL = "/access/".$mruser;

And it works untill I try to use the upload script. The upload script forgets $_SERVER["REMOTE_USER"] from the end of $ROOTPATH and $ROOTURL half way through the upload.php. So it sees the dir as F:/whatever/user @ the begining of the script but by the time it reaches the actual it only sees F:/whatever/

I have no idea why it does this. Can anyone help?
(If this comment was disrespectful, please report it.)

 
9/9/2003 3:56:21 PM

P.S. Ive tryed setting the $mruser manually in the path.ini to "a user" and IT WORKS! SO, I think it has something to do with the not being able to get $_SERVER["REMOTE_USER"]

Also...
This is a really good code btw...
Kudos to Ken for making it!

Just had a thought:
Maybe path.ini needs to be included twice?
(If this comment was disrespectful, please report it.)

 
9/16/2003 2:07:30 PMKen Loke Kuo Sern

thanks for supporting whoever you are.. (never write down your nick)

in fact.. i have use this for my friend's company for sharing folder access.. different dept have different access.. such as managers having all access so that they can view all folder.. HR or IT only can view their individual folder and common share folder such as Company folder...

feel free to amend them for your own purposes.. thats y i share the codes to all PSCs..
(If this comment was disrespectful, please report it.)

 
10/22/2003 9:22:16 AM

Great work .....
(If this comment was disrespectful, please report it.)

 
7/4/2005 1:32:22 AM

Excelent Work
I need your help. i am new in ASP i am developing a side an career module in this module user will upload his CV which is a DOC file i want to restirc user so user can only upload .DOC files and size of file is not more then 600KB and file must be scan before uploading like yahoo and MSN did
if you have any idea then please guide me
ohgenious41@hotmail.com

(If this comment was disrespectful, please report it.)

 
11/16/2005 10:43:32 AMjpasten

Great code, thanks I work with two lines changes. Great...
(If this comment was disrespectful, please report it.)

 
8/8/2006 12:13:26 AMsevior

pls help me install this one... i had a hard time configuring it... im new here and also new in php... pls help me i really need this one to pass my subject... i cant open my email in class so pls just reply here... thnx a lot
(If this comment was disrespectful, please report it.)

 
9/28/2006 11:28:59 AMKellie

This code is great however I can't open a zip file
(If this comment was disrespectful, please report it.)

 
8/12/2012 7:24:15 PMMatt

How do I convert this to Linux, because this is not working.
(If this comment was disrespectful, please report it.)

 
8/12/2012 7:29:55 PMMatt

How do I make this work on linux?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.