you could do it like this:
(dirty and quick-coded way, nto tested)
en.php
<?php
$hello="Hello";
$welcome="welcome to our site";
$enjoy="Enjoy!";
?>
nl.php
<?php
$hello="Hallo";
$welcome="welkom op onze site";
$enjoy="Veel plezier!";
?>
index.php:
<?php
$lang=$_GET['lang'];
switch($lang)
{
case'en':
require"en.php";
break;
case'nl':
require"nl.php";
break;
default:
require"en.php";
break;
}
echo $hello."<br>";
echo $welcome."<br>";
echo $enjoy."<br>";
?>
you'd call index.php liek this:
sub.domain.com/index.php?lang=en
for example. should do the job
