Hi,
Just like phpBB i have a fairly large language section.
For those of you who do not know it there is a global array variable $lang
and it contains translations of many word used all over the place.
For example
$lang['hello'] = 'Hello';
$lang['bye']='Goodbye';
....and so on
but that array contains a few hundred entries, most of them are not used in
the everyday use of the site.
How big of a problem could that be in terms of memory? Does php load that
array everytime a new user queries a page or is the array shared between all
the processes?
Would there be a better way of doing it that would not be so heavy on the
memory?
Regards.
Sims
Just like phpBB i have a fairly large language section.
For those of you who do not know it there is a global array variable $lang
and it contains translations of many word used all over the place.
For example
$lang['hello'] = 'Hello';
$lang['bye']='Goodbye';
....and so on
but that array contains a few hundred entries, most of them are not used in
the everyday use of the site.
How big of a problem could that be in terms of memory? Does php load that
array everytime a new user queries a page or is the array shared between all
the processes?
Would there be a better way of doing it that would not be so heavy on the
memory?
Regards.
Sims
Comment