User's language settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

I have a web-site, part of which is in Russian and another part in English.

English and Russian parts are located in different directories. The web-site is static.

I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his primary language is Russian and to /en/index.html, when his primary language is non-Russian.

In other words:

<?php

if ($languageRussian)
{
header("Location: http://dapissarenko.com/ru/index.html";);
}
else
{
header("Location: http://dapissarenko.com/en/index.html";);
}

exit;
?>

How can I determine user's primary language?

Thanks!

dap
--
Dmitri Pissarenko
Software Engineer
http://dapissarenko.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux