You are here: Re: include large file - right choice ? « PHP Programming Language « IT news, forums, messages
Re: include large file - right choice ?

Posted by Tony Marston on 03/08/06 11:45

With my internationalisation feature I do not put all the text into a single
file, I have a separate file for each language. This means that each file is
no bigger than it need be, and it is also much easier to give someone a copy
of a small file for translation purposes.

--
Tony Marston
http://www.tonymarston.net

"Bob Bedford" <bob@bedford.com> wrote in message
news:440df36c$0$729$5402220f@news.sunrise.ch...
> hello there,
>
> 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.
>
> The file is becoming ever larger as we add new pages on our site. Actually
> the file is about 100ko
>
> 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
> ?
>
> 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)
>
> Has anyone a good feedback of experienced development ?
>
> Thanks for any tip.
>
> Bob
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация