GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need your help test a small script ;) (https://gfy.com/showthread.php?t=821094)

chrisl 04-10-2008 09:10 AM

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

Czech 04-10-2008 09:13 AM

It works fine :thumbsup

k0nr4d 04-10-2008 09:13 AM

matches here.

gleem 04-10-2008 09:18 AM

just says ".net" in mine - using safari 3.1 here.

Isradude 04-10-2008 09:19 AM

works :thumbsup

Zorgman 04-10-2008 09:23 AM

works here. au

halfpint 04-10-2008 09:24 AM

it just says ".com" over here in the UK

chrisl 04-10-2008 09:25 AM

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.

Spyce 04-10-2008 09:26 AM

I got the .com... must be working :-)

100 04-10-2008 09:27 AM

from Argentina - .ar is incorrect, in Argentina not exist domains .ar
all is .com.ar :)

Ditosta 04-10-2008 09:27 AM

Doesnt' work for me here in Canada

chrisl 04-10-2008 09:27 AM

it wont be 100% bulletproof it depends on what extention your internet host has

chrisl 04-10-2008 09:29 AM

Quote:

Originally Posted by 100 (Post 14051542)
from Argentina - .ar is incorrect, in Argentina not exist domains .ar
all is .com.ar :)

But .ar will define your address as Argentina and that is the information I need

k0nr4d 04-10-2008 09:30 AM

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];

Reak AGV 04-10-2008 09:32 AM

It says ''.237'' I'm confused.

chrisl 04-10-2008 09:33 AM

Quote:

Originally Posted by Ditosta (Post 14051543)
Doesnt' work for me here in Canada

What does it say? Your provider may have a .com extension?!

100 04-10-2008 09:34 AM

Quote:

Originally Posted by chrisl (Post 14051557)
But .ar will define your address as Argentina and that is the information I need

aj, ok :)

chrisl 04-10-2008 09:38 AM

Quote:

Originally Posted by k0nr4d (Post 14051561)
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];

Not exactly but very close, very simple nothing fancy just wanted to test it out ;) It's impossible to get 100% correct what ever you do, just needed something to catch most of the surfers. If the script don't have a match i will just fall back to dollar.

chrisl 04-10-2008 09:55 AM

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

Eriic 04-10-2008 10:11 AM

it says " .net "

I use firefox 2.0.0.13

chrisl 04-10-2008 11:36 AM

any more people willing to give it a shot?

mrwilson 04-10-2008 11:42 AM

.uk for me

martinsc 04-10-2008 11:43 AM

says .net for me.... Israel

CaptainHowdy 04-10-2008 12:36 PM

: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