Simple File Manager Web App using PHP and MySQL Database Free Source Code
In this article, I will be sharing with you a simple Web Application called File Manager Web App. This mini-project was developed using PHP and MySQL Database. The application is able to store/Upload, retrieve, download, and delete files. In this project source code, you will learn how to manage file uploads using PHP Language. I am sharing this source code because I think this will be useful for your future project and to enhance your programming capabilities.
The File Manage Web App has simple features that are all related to the uploaded file. All the uploaded files are listed/displayed in a table that has a filter, sorting, and pagination feature using the DataTable library. In here, the application user can simply upload the file by choosing the file that he/she desired to upload and by clicking the Submit button, the file will be uploaded into the server and will be enlisted on the table. The user can download the file by clicking the attachement/paper clip icon and delete the file by clicking the trashcan icon.
Features
- Upload any file
- List the Files in the Table
- Download your File uploaded
- Delete your File uploaded
- Table Pagination
- Table row filtering
- Table column ordering/sorting
Here's the a sample source code that I used on this simple Web Application
This PHP source code contains INSERT Statement to save the data into the database.
- <?php
- $name=$_FILES['photo']['name'];
- $size=$_FILES['photo']['size'];
- $type=$_FILES['photo']['type'];
- $temp=$_FILES['photo']['tmp_name'];
- $caption1=$_POST['caption'];
- $link=$_POST['link'];
- $query=$conn->query("INSERT INTO upload (name,date) VALUES ('$name','$date')");
- if($query){
- }
- else{
- }
- }
- ?>
The File Manager Web Application's Source Code is free to download on this website. Feel free to download and modify it the way you wanted.
How to Run ??
Requirements
- Download and Install any local web server such as XAMPP/WAMP.
- Download the provided source code zip file. (download button is located below)
Installation/Setup
- Open your XAMPP/WAMP's Control Panel and start Apache and MySQL.
- Extract the downloaded source code zip file.
- If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
- Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
- Create a new database naming myweb.
- Import the provided SQL file. The file is known as upload.sql located inside the SQL folder.
- Browse the Simple File Manager Web App in a browser. i.e. http://localhost/myfilemgr.
DEMO
That's it! You can now test the features and functionlities of this Simple File Manager Web App in PHP and MySQL Database. I hope this will help you with what you are looking for and for your future projects.
Happy Coding!!Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.
Virus note: All files are scanned once-a-day by SourceCodester.com 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.
Comments
edit code connect SQL
thankyou very much
blank page
i got blank page when i execute the php file. Even the tittle didn't show up on my browser.
cannot display table
cannot display the record in table
Blank Page Upload
Where are the instructions
Add new comment
- Add new comment
- 15832 views