NYCPHP Meetup

NYPHP.org

[nycphp-talk] Loading array from file

David Krings ramons at gmx.net
Wed Apr 4 09:57:12 EDT 2007


Hi!

Working on my internationalization project I am now ready to load the 
contents of a string file into an array and use the strings. Now, I have 
to ideas when to do this:
a) run this on load of every page with output
b) run it once on the start page and store the array in the session

Does anyone have any experience with doing one or the other (or both)? I 
wonder which way is the faster / more robust.

My guess is that after I'm done the string file will have several 
hundred entries.

Thanks in advance.

David



More information about the talk mailing list