laserlight wrote:Perhaps you are looking to use sessions, cookies, files and/or a database?
probably sessions...
bradgrafelman wrote:Or create a "config.php" file that holds constants and include() it in your scripts?
that value will be different for each use so i guess using sesions is the best way.
Actually i'm trying to find the easiest way creating a multilingual website. Usually i just do this:
<?php
lang = $_GET['lang'];
if ($lang == 'en') {
englishg contents
}
if ($lang == 'gr') {
greek contents
}
?>