[nycphp-talk] Loading array from file
Ben Sgro (ProjectSkyline)
ben at projectskyline.com
Wed Apr 4 10:01:36 EDT 2007
Hello,
I worked on a large PHP project, we used to have HUGH arrays (it would
sometimes timeout the script)
I can't remember..but they were slow...but more often, a particular SQL
statement
was even slower when we did performance related tuning..it was SQL we always
had to fix.
What about storing the result in a temp table?
- Ben
----- Original Message -----
From: "David Krings" <ramons at gmx.net>
To: "NYPHP Talk" <talk at lists.nyphp.org>
Sent: Wednesday, April 04, 2007 9:57 AM
Subject: [nycphp-talk] Loading array from file
> 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
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
More information about the talk
mailing list