Developing different website editions based on countries?

For example: I’m a Hungarian user, but my IP shows I’m in Germany while I use an English browser. The most convenient would be English for me, because that is my choice.

There’s a PHP superglobal variable, called $_SERVER. It stores information about the server running the page and about the client who requested the page. One string of this array’s parameters is called HTTP_ACCEPT_LANGUAGE, sent by the browser, which in my case will be “en”. It can be accessed from PHP as: $_SERVER['HTTP_ACCEPT_LANGUAGE'].

This can be used to get the specified content for example with a custom field which contains values what this string can be.

Unfortunately I don’t have the time right now to create a complete example, but if you’re interested in this method, I’ll prepare one.

error code: 523