initializing same array across web pages
Posted: Sun Mar 06, 2011 3:25 pm
i have a large array (1000 to 2000 elements) where each element has a unique value.
I need to reference this array in each web page.
My plan was to assign all the array elements in a file then include it in each page.
But it seems like this would take up a lot of processing when it repeats the array assignment for each page.
Is there a more efficient way to do this in php?
thanks in advance.
I need to reference this array in each web page.
My plan was to assign all the array elements in a file then include it in each page.
But it seems like this would take up a lot of processing when it repeats the array assignment for each page.
Is there a more efficient way to do this in php?
thanks in advance.