Online Learning System V2 using PHP Free Source Code



This is an Online Learning System Project in PHP. This project is version 2 of the Simple eLearning System that I created and posted here months ago. The changes of this version focus on lesson modules for both Faculty and Student users. The updates include some user interface changes mostly the colors.

Here's the link for Version 1

About the Online Learning System V2

This web-application is still written/developed using PHP, MySQL Database, HTML, CSS, JavaScript (jQuery and Ajax), Bootstrap, AdminLTE Template, and other libraries/plugins. I used XAMPP 3.3.0 as my local web server which has a PHP version 8.0.7 to run and update the project.

The Online Learning System v2 contains a new feature and functionalities for both Student and Faculty users. The Faculty Users can now upload other files (image/*, video/*, and pdf file). The said files will be uploaded as the Faculty's Media. Each link will provide/generate a button where the can Faculty copy's the link so they can insert the file for the content of each lesson. Talking about the pdf file, to use the said type of file, the faculty will be provided a Short Code Copy Button which he/she can paste on the lesson content. In the Lesson View Page, the pdf shortcode script in the lesson content/description will be automatically replaced with a PDF Viewer. This has now also a Backpack Feature for the student side which allows the student to save files uploaded by faculties shown in the lesson content to their backpack list. The Backpack list will help the student to store the important files with some notes for reviewing the files in the future.


Version 1 Features that exist in Version 2

Admin Panel

  • Manage System Info
  • Manage Academic Year List
  • Manage Department List
  • Manage Course List
  • Manage Subject List
  • Manage Faculty List
  • Manage Faculty Subject Loads
  • Manage Student List
  • Manage Class List
  • Manage Account Details


  • Login/Logout
  • View My Class List
  • View My Lesson Created
  • Manage Lesson
  • Manage Account Details


  • Login/Logout
  • View My Subject List
  • View My Lesson per Subject
  • Manage Account Details

New Updates


  • Upload Media
    • Images
    • Videos
    • PDF file
  • List all Media
  • View Media File in a Modal
  • Delete Media
  • Search Media
  • Auto Rename duplicate filename for uploading files
  • Insert Uploaded Files to Lesson Content
  • Media List Modal for Copying the link and Short Code
  • Fixed the Upload Bug when updating a Lesson content


  • Lesson Content View with Other files Included
  • Backpack List Page
  • Backpack List Per Lesson
  • Add File Items to Backup with notes
  • Pin Backpack Items to dashboard
  • Display Backpack Items Details and File Preview
  • and more

System Snapshots of some Features

Lesson View with Included Other Files

Online Learning System v2

Faculty-Side Media List Page

Online Learning System v2

Faculty-Side Media Viewer Modal

Online Learning System v2

Student-Side Backpack List Modal Per Lessons

Online Learning System v2

Student Backpack Item Display Modal

Online Learning System v2

How to Run ??


  • Download and Install any local web server such as XAMPP/WAMP.
  • Download the provided source code zip file. (download button is located below)


  1. Open your XAMPP/WAMP's Control Panel and start Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. 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.
  4. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming learning.
  6. Import the provided SQL file. The file is known as elearning.sql located inside the database folder.
  7. Browse the Online Mobile Store Management System in a browser. i.e. http://localhost/elearning/ for the system login portal.

Default Admin Access Information

Username: admin
Password: admin123

System User Access Information:

Sample Faculty
Faculty ID: 12345
Password: 12345

Sample Student
Student ID: 6231415
Password: 6231415


That's it. You can now explore the features and functionalities of this Online Learning System V2 in PHP. I hope this project will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

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 for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


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.


Submitted byRyzphp (not verified)on Wed, 10/06/2021 - 11:57

how to solve "Access Denied!" when click faculty and student in the portal? help me
Submitted byoretnom23on Thu, 10/07/2021 - 08:28

In reply to by Ryzphp (not verified)

You can only access 1 user role in a single browser. Make sure to log out first before logging in other user or log in the other user using a private or different browser.

Submitted bypassion (not verified)on Fri, 04/08/2022 - 14:58

the system keeps waiting when adding new faculty
Submitted bySarah H (not verified)on Tue, 06/07/2022 - 20:23

Good moorning sir , I want to thank you first for the a great job you're doing to help the student all around the world . I was only wondering why we can't change the name of elearning system on the dashboard for example or anywhere on the app . Thank you so much if you clarify this to me .
Submitted byKazama (not verified)on Sat, 09/03/2022 - 18:16

hello sir, thank you very much for this code. really help me to studying about e-learning project. Btw.. I have a question, how to solve this problem? Warning: Constants may only evaluate to scalar values in C:\xampp\htdocs\elearning\initialize.php on line 5 Class once again, thank you for your help sir.
Submitted byregie_cajes (not verified)on Wed, 01/31/2024 - 18:38

So, it means docx file pptx and xlsx extension file is not supported in this system?

Add new comment