Posted by Peter Fox on 03/08/06 11:01
Following on from Colin McKinnon's message. . .
>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.
Not where 'data' is text. Most web pages are stored as files.
Databases are great tools but not essential.
>
>> The file is becoming ever larger as we add new pages on our site. Actually
>> the file is about 100ko
However if you have a well structured system, either a database or
separate component files would reduce the overhead for a single page
access.
In either event you're looking at modifying your translation procedure.
Perhaps you have an additional process which parses your text file once
(each time it has been changed) into the necessary blocks. Then you can
either include according to some logical file name convention or access
database blobs by some logical key.
--
PETER FOX Not the same since the e-commerce business came to a .
peterfox@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
[Back to original message]
|