![]() |
Need your help test a small script ;)
If you go to this page http://www.thaichix.com/test.php what does it say in your browser? Does it match the country your in?
Cheers ChrisL |
It works fine :thumbsup
|
matches here.
|
just says ".net" in mine - using safari 3.1 here.
|
works :thumbsup
|
works here. au
|
it just says ".com" over here in the UK
|
hehe cool, keep it coming ;) This is great! Going to use it to match the currency on our site for the new ccbill regional feature.
|
I got the .com... must be working :-)
|
from Argentina - .ar is incorrect, in Argentina not exist domains .ar
all is .com.ar :) |
Doesnt' work for me here in Canada
|
it wont be 100% bulletproof it depends on what extention your internet host has
|
Quote:
|
sounds like all he is doing is reading the end of the domain name from your hostname...
i bet the code looks like this: $array = explode('.',$hostname); $array = array_reverse($array); echo $array[0]; |
It says ''.237'' I'm confused.
|
Quote:
|
Quote:
|
Quote:
|
re:
It is a very simple script it try to catch the Internet host by extension in order to match it against the countries in europe so we may change the currency shown on our page to match the new regional feature by ccbill. It will work in reverse so everything that does not have an extension like Code: $eu_countries = array("at","be","cy","fi","fr","de","gr","ie","it" ,"lu","mt","nl","pt","si","es","mc","sm","va"); will become dollar ;) ChrisL |
it says " .net "
I use firefox 2.0.0.13 |
any more people willing to give it a shot?
|
.uk for me
|
says .net for me.... Israel
|
:thumbsup!
|
All times are GMT -7. The time now is 07:57 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123