Reply to Re: Too match text I think.

Your name:

Reply:


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!

[Back to original 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

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