Would it be faster/more efficient to generate something in a PHP script or to load it from a MySQL database? For example, lets use a math game. Would it be more efficient to: 1. put a bunch of questions in a MySQL database and load it from there OR 2. make a PHP script to generate math questions Thanks in advance!
2 is faster, coz there is no connection to mysql wich is also slowing down the process But i'm not 100% shure, try it out!
Php is deffinetly faster , mysql is slower because of connection , selection etc. Offcourse mysql variant is highly customizable you can add a cool admin panel and itll be easier to add more questions etc.