Jump to content

location specific


dachshund

Recommended Posts

i know there's probably not a solution as simple as this but, if possible, i would like to create some location specific php by finding the users ip address

 

something that would work like this

 


if (users_location == 'UK') {

echo 'This';

}else {

echo 'That';

}

 

let me know if this is way to difficult!

 

thanks

 

Link to comment
Share on other sites

You can check to see if you already have it installed by using:

 

echo phpinfo();

 

If you don't have it installed, and you're on shared hosting you won't be able to install it. In that case you can use an API like this one.

Link to comment
Share on other sites

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.