Online examination
Moderator: General Moderators
Online examination
Please, i have this online examination system project going on. it is going well but i have some issues i need help fixing.
1. The exam timing when inserted, if it is below 60, the session will expire immediately. it is suppose to be entered as minutes but it does not work
2. I want to be loading questions as CSV, so it will be another option inplace of manual typing
3. I want the questions that are fetched to appear randomly to the user, so that in case of many users, they see different questions at the same time.
Finally, we are working on an API with general web interface that will link to this examination system, i need help Linking this project with the API. .. here is the link to the project on github https://github.com/leocss/pre-test
1. The exam timing when inserted, if it is below 60, the session will expire immediately. it is suppose to be entered as minutes but it does not work
2. I want to be loading questions as CSV, so it will be another option inplace of manual typing
3. I want the questions that are fetched to appear randomly to the user, so that in case of many users, they see different questions at the same time.
Finally, we are working on an API with general web interface that will link to this examination system, i need help Linking this project with the API. .. here is the link to the project on github https://github.com/leocss/pre-test
Re: Online examination
Nobody here is familiar with your app. Where should we even start looking? I'm not going to start digging through dozens of PHP files to maybe find one of these issues.
Re: Online examination
ITS NOT A COMPLICATED APP. its a farmiliar e-examination system. i have a problem with the test timer which is one of the files in the app folder. anything you want to know about the app, just ask me ad i will respond asap
Re: Online examination
I think you forgot to include the DB schema in the repo. Can't get this running without a DB.
Re: Online examination
The schema is the file named oes.sql. https://github.com/leocss/pre-test/blob/master/oes.sql its part of the files in the repo
Re: Online examination
I created a test, set the time limit to 10 minutes, and had no problems. Can you elaborate on what's happening here?toyo wrote:Please, i have this online examination system project going on. it is going well but i have some issues i need help fixing.
1. The exam timing when inserted, if it is below 60, the session will expire immediately. it is suppose to be entered as minutes but it does not work
Re: Online examination
You're always starting with the first question by setting $_SESSION['qn'] = 1 and then incrementing by one until you hit the total number of questions. Since you're fetching the questions individually, ORDER BY RAND() isn't going to work, but you could instead create an array of question numbers, shuffle them, and retrieve the questions from the DB in the resulting order.toyo wrote:3. I want the questions that are fetched to appear randomly to the user, so that in case of many users, they see different questions at the same time.
Re: Online examination
Ok, thank you for your contribution. the problem with the timing is not in the setting but when taking the test. When a user is about to take the test, the screen flashes and the it submits automatically withouht the user answering anything. The timing does not work, except you enter a higher value like lets say 100 in the time field then it returns the time in hours while taking the exam. but smaller values aint working. Dont know why. I have tried to fix it, but i am stuck
Re: Online examination
........................
Re: Online examination
That's what I understood from your original post, but I was not able to duplicate that. I created a test with a time limit of 10 minutes no problem. I then logged in and took the test, also without issue. Have you been able to duplicate the issue across browsers? Do you have a link where it's not working?toyo wrote:Ok, thank you for your contribution. the problem with the timing is not in the setting but when taking the test. When a user is about to take the test, the screen flashes and the it submits automatically withouht the user answering anything. The timing does not work, except you enter a higher value like lets say 100 in the time field then it returns the time in hours while taking the exam. but smaller values aint working. Dont know why. I have tried to fix it, but i am stuck
Re: Online examination
Ok, thanks for your effort. let me try taking the test on my local machine with chrome or explorer and see. i always use mozilla. will get back to you asap
Re: Online examination
Still having timing issues. i used several browsers. Am surprised that it is working over there. I enterd 10 mins for a particular test and the session expired immediately am about to take the test..........
am confused
am confused
Re: Online examination
Can i please see the screenshot of the exam you are taking? my sessions are still expiring automatically and i have tried all my browsers.
Re: Online examination
Sounds like it might be a server setup issue if it's persisting across browsers. I've got it set up at home, so I can post a screenshot when I get back from work if you want.