Jump to content

Recommended Posts

What I'm looking for is let say if my visitor is from US the it will go to the default

 

mywebsite.com

 

if from UK

mywebsite.com/uk

 

from Bangladesh

mywebsite.com/bd

 

and so on. If i don't have specific code for certain countries traffic from those countries will just go to he default page.

 

 

I can get the ip address by

 

$_SERVER['REMOTE_ADDR'];

 

Now, I want to match it with country specific ip addresses.  By writing if else statement.

 

But I can't find any library function that contains ip list or something. Can any one advice me here.

And then what?

This isn't 20 questions, you know, and we're not psychics either. Nor are we here to do the research or coding for you, neither are we here to give you all the answers on a silver platter. What we're here to do is to help those who're trying themselves, and give pointers on what to look for.

 

Also, I think you'll find this article enlightening.

And then what?

This isn't 20 questions, you know, and we're not psychics either. Nor are we here to do the research or coding for you, neither are we here to give you all the answers on a silver platter. What we're here to do is to help those who're trying themselves, and give pointers on what to look for.

 

Also, I think you'll find this article enlightening.

 

Wow, hold on!!. I don't need your help. I'm not new in forums. If you think one or 2 words always helps then you are wrong.

 

I'm not asking u to code for me. I'm going to do it and I have spent a lot of hours as well. I have asked this question in other forums and met a whole let helpful people than you. You didn't really help with the word "Geo-location", I know that already.

 

It seems you are more interested in bullying noobs. That won't work with me coz I'm not a noob.

 

No need to reply further. I'm here to get a real answer, not an argument with a bully like you. My time is expensive.

What I'm looking for is let say if my visitor is from US the it will go to the default

 

I'd kind like to know how to do that too.

 

My programmer found a way to identify ips. its on this domain temporarily. I still don't know how though. I'll update u later on floridaflatlander.

 

@ameerulislam

ChristianF's point was to bring to your attention the need to allow users to pick their localisation.  Serving the wrong / undesired language can have adverse affects on your site.  And he was also correct in identifying geolocation as the tool you'll be needed. 

 

If you're so accustomed to forums - and logic forums to boot - you know that you'll need to analyze a reply...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.