http://api.hostip.info/get_html.php?ip=w.x.y.z will return information
about the apparent location of an ip address.  In PHP, this
demonstrates it's behavior

<?php
$URL = "http://api.hostip.info/get_html.php?ip="; . $_SERVER
['REMOTE_ADDR'];
$location = file_get_contents($URL);
echo "You are located in :<br>" . $location;
?>


On Nov 19, 7:17 am, fabio.lazaro <[EMAIL PROTECTED]> wrote:
> You can get the user IP with PHP, store it in a variable and pass his value
> for javascript... Just compare the value and manipulate the elements with
> addClass() and removeClass()
>
> 2008/11/19 Liam Potter <[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> > Better off doing this server side.
>
> > (antenna) wrote:
>
> >> Hi,
>
> >> I'm quite new to jQuery and wondered if this was possible. I need to hide
> >> a
> >> bit of content on a web page if the visitor is outside of the UK.
>
> >> I'm wondering if jQuery can detect what language the visitors browser is
> >> set
> >> to (e.g. 'en', 'en-us', 'fr' etc) and then hide the content is the result
> >> is
> >> not 'en'?
>
> >> Any help would be much appreciated.
>
> >> Thanks!
>
> --
> Fábio Lazaro
> Web Developer Pleno
>
> Cel.: 11 8919-1007
> E-mail: [EMAIL PROTECTED]
> Talk: [EMAIL PROTECTED] Hide quoted text -
>
> - Show quoted text -

Reply via email to