I'm looking for a div from another page and putting it in my:
My div:
<div id="teste"></div>
script:
<script type="text/javascript">
$("#teste").load("http://www.home356.org/index.php #ip_filter");
</script>
With this script the result of the div #ip_filter in the index.php page is loaded into the div #teste normally.
The contents of this div ip_filter is an ip address of the person who accesses index.php. In my page I would like to put a condition in php that if the ip address (value that will be brought to div #teste) is x.x.x.x, do: echo="something". if not x.x.x.x, do: echo="something else."
I think it is possible to do this with javascript same, but the problem is that it has linux machines on the network using browser firefox and javascript disabled on these machines.
Is it possible to do this using php?