Yes, you put my comments much more concise and verbal than I did…
But, you still missed the point a little. A simple site page like that can be done in MySQL in very little
code. It would be much much much faster and you can use command to randomly pick 5 questions
from your database in the one line query and no code at all is needed for the rest. No reading of any
text file, so no load on the server. MySQL systems are very fast these days, are secure and can pull
out random data using a LIMIT arg that means no coding to get your list of questions.
So, we all agree, take the time to read up on MySLQi commands and you can have this page working in
less than an hour!
Here’s a link to an excellent place to start: http://www.w3schools.com/php/php_ref_mysqli.asp
You will need to peek at how to open a database, how to execute a query and for the query check out
randomizing and LIMIT args. Simple to learn…
Good luck…