Probao sam ovako:
index.php
<?php
if (!(empty($par))){
setcookie("paradiselang");
setcookie("paradiselang", $par, time()+12960000);
} else
if (empty($paradiselang))
{
setcookie("paradiselang");
setcookie("paradiselang", "eng", time()+12960000);
}
?>
.
. <html tags>
.
<?php
if (!empty($par))
echo "<meta http-equiv=\"refresh\" content=\"3;URL=$par/index.html\">";
else
echo "<meta http-equiv=\"refresh\" content=\"3;URL=$paradiselang/index.html\">";
?>
A, sa drugih strana skript pozivam sa: index.php?par=ser
Gde gresim?