|
If I'd do something like this I'd make use of a database. Have a table with the fields 'pageNbr', 'title', 'color' etc. and add a row for each of your 1000 pages. Then instead of including a file with a huge array you just fetch one row and use those variables. If you're new to databases I recommend tizag.com's tutorial.
About your solution with sessions. Well, I can't technically proove this but it "feels" as if using sessions would be less efficient and very unnecessary. That would make them accessible through the whole session, so it would take up more memory for a longer time, or something like that :P
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|