Posted by Colin McKinnon on 03/08/06 00:26
Bob Bedford wrote:
>
> I've a file in wich I've almost all the text of my website. I do this
> because the site is multilingual and this is easier to translate.
>
Most people keep data in databases or data files.
> The file is becoming ever larger as we add new pages on our site. Actually
> the file is about 100ko
>
This is why most people keep data in....
> I know the page is only used server side (I use a require_once) but
> wouldn't be better to create a "common" file wich will be about 20 ko
> large (with menus and some other text that will be always shown) and some
> little file wich have the same name of the page (like index.php linked to
> eng-index.php) in wich there is only the desired text for the desired page
> ?
>
Apache (and most webservers) have some multilingual capability already.
Reading up on this might be a good start.
> What's better for the server ? would this really improve page process time
> ? Or there is a way to "cache" this file in memory for faster delivery ?
> (Apache server on Linux)
>
Unless is sort of memory, it's probably already caching the disk I/O. You
can also cache tokenization of the PHP files using a PHP accelerator. But
really you need to look at your data architecture.
HTH
C.
Navigation:
[Reply to this message]
|