Thanks dude, i got it working. i know jack #*$! about php so im now a bit stuck.
the code works, when i vist the test.php file i get the result "uk" - my question is, how do i create a file that shows page1.php to anyone on a usa ip and then page2.php for the rest of the world.
i appreciate if you or anyone could help me in this matter.
thank in advance