Project: Simple Realtime Quiz System using PHP/MySQL
The Simple Realtime Quiz System is a PHP/MySQL project that will help teachers for online classes to provide a quiz or quizzes to his/her students on his/her control. This simple project help to connect students answer sheet to their teacher. Talking about the real-time feature of this quiz system will provide the quiz code to his/her student so the student can join the quiz as a participant by the control of their teacher. After that, if the students are connected to the quiz, the teacher will start the quiz and this can be done by the teacher with a single click on the Start Quiz button, which will automatically send the question to all connected student/participants one by one. Each questions intervals is up to the teacher if how long he/she will proceed with to next question, which means the student can change their selected options if they want until the teacher will control the quiz to proceed to the next question. While the students are trying to answer the question, in the teachers' view, he/she can monitor the numbers of participants who choose each question option in realtime. By this feature, the teacher will know immediately the number of students who answered the question right or wrong. When the quiz will meet to the last question next button will be automatically changed into a finish quiz button for the teachers' view, and by clicking this button the students will be redirected to the result of their quiz with their score, and student/participant can review also the part/question that they answered right and wrong, and for the teacher, he/she will be redirected to the quiz management page whereas all option to create, edit and delete question will disappear and change to the quiz summary result of the students who participated. The teacher can also check the answer sheet of each student and print the students' quiz records.
Download the source code and extract the zip file.
Download or set up any local web server that runs PHP script.
Make sure uncomment the "extension=sockets" line in your php.ini file.
Run the php-socket.php file in your command line or terminal. [ php php-socket.php ]
Open the web-server database and create a new database name it realtime_quiz_db.
Import the SQL file located in the database folder of the source code.
Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
Open a web browser and browse the project. E.g [http://localhost/realtime-quiz-system-using-php]
There it is, the realtime quiz system is ready to use.
I hope this simple realtime quiz system will help you with what you are looking for. Feel free to download and modify the source code.
Explore more on this website for more source codes and tutorials.
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.