Posted by Frits van Leeuwen on 10/14/06 10:42
>> For example if you have french, english and german you may have 3
>> files called:-
>>
>> lang_de.php
>> lang_en.php
>> lang_de.php
>
> Totaly wrong
>
>> if($_SESSION['lang'] == 'de')
>> {
>> require_once('lang_de.php')
>> }
>> elseif($_SESSION['lang'] == 'fr')
>> {
>> require_once('lang_fr.php')
>> }
>> else
>> {
>> require_once('lang_en.php')
>> }
>>
>
> No sense
>
>
> He should to use only ONE FILE - no more!
>
> and just put in separated data to this file
>
This kind of code is also possible in one file, I can start with this and
when I know how to handle a DB, switching to a DB.
--------------------------------------------------------------------------------
Mijn Postvak In wordt beschermd door SPAMfighter
4017 spam-mails zijn er tot op heden geblokkeerd.
Download de gratis SPAMfighter vandaag nog!
Navigation:
[Reply to this message]
|