Like this:
Code
<?php
include_once("imagevue.php?language=english&theme=mabroEN");
?>Neither is the following succesful:
Code
<?php
$language = english;
$theme = mabroEN;
include_once('imagevue.php'); ?>
http://www.martinbroeze.nl/g1/imagevue. ... me=mabroEN
The reason for this all, is that I'm going to check the IP-address of a visitor, so I can branch to a dutch version of my website or to a english version.
And... by the way... using html files, like we discussed in the 'Multi lingual' topic does not work, because the html-website won't work anymore that way ..
The complete code of index.php, just for reference:
Code
<?
$IPaddress=$_SERVER['REMOTE_ADDR'];
$two_letter_country_code=iptocountry($IPaddress);
if ($two_letter_country_code=="NL"){
include_once("imagevue.php?language=dutch&theme=mabroNL");
die();
}else{
include_once("imagevue.php?language=english&theme=mabroEN");
die();
}
function iptocountry($ip) {
$numbers = preg_split( "/\./", $ip);
include("ip_files/".$numbers[0].".php");
$code=($numbers[0] * 16777216) + ($numbers[1] * 65536) + ($numbers[2] * 256) + ($numbers[3]);
foreach($ranges as $key => $value){
if($key<=$code){
if($ranges[$key][0]>=$code){$two_letter_country_code=$ranges[$key][1];break;}
}
}
if ($two_letter_country_code==""){$two_letter_country_code="unkown";}
return $two_letter_country_code;
}
?>


