Join the forums now, and start posting to receive access to our Scripts Vault!
Perfect solutionIt seems the best solution would be to store all the data in database. Then, once you change the data you not only write it to the database but also parse the database and create an INI file out of it. Convenient, able to backup everything via SQL dump and very fast (since visitor use only INI file).
I beg to differ on that point greatly. We use to use that method ourselves but converted to using includes/defines because under extremely heavy load, say 150+ users online, the database starts to become very lagged. We saw huge improvements across the server once we switched off from the database for certain configuration settings.
I would not use the INI approach on things that may need to change during the course of the game.
1) Store variables in database for ease of use, edit them, backup, etc.2) Once the database settings are ready dump it to PHP/INI file (and only the file is read by the game, the database is read by admin panel only).