Im sure its simple but somehow i cant code it. Would love the help of some expert
|
Go4Expert Member
|
|
| 14Dec2009,15:40 | #1 |
|
Exactly as mentioned i have trouble wit hthat. I want to use the maxmind geoip base in php so that when user comes to my aaa.com then it checks if hes from .be .fr .ca and puts him on aaa.com/1.htm, if from .uk .au .us to aaa.com/2.htm anf if from other place tio aaa.com/3.htm [or .php doesnt matter here]
Im sure its simple but somehow i cant code it. Would love the help of some expert
|
|
Ambitious contributor
|
![]() |
| 14Dec2009,17:15 | #2 |
|
You can use the Geo IP Location extension of PHP.
Please see the link below: http://php.net/manual/en/book.geoip.php |
|
Go4Expert Member
|
|
| 14Dec2009,18:19 | #3 |
|
im reading that but looks complex to me, im not so good with php [i can edit simple parts but mainly i need more 'step by step' info.
cant i just upload the files of geoip and put 2-3 pages of php code that will read them and make use of them? this looks a bit too complex with those shell commands thanx |
|
Ambitious contributor
|
![]() |
| 14Dec2009,18:32 | #4 |
|
I have never heard of Geo IP extension of PHP earlier. I came to know about it only after your question. I also have to go through it to know more about GeoIP.
|
|
Go4Expert Member
|
|
| 14Dec2009,18:42 | #5 |
|
im sure it can be done in php just by uploading all the files [not even importing to mysql] and using 1-2 .php files - ive seen such thing, but i have no idea how to do it and my knowledge of php doesnt allow me it seems
![]() happy i |
|
Go4Expert Founder
|
![]() |
| 14Dec2009,19:33 | #6 |
|
Go4Expert Member
|
|
| 14Dec2009,19:37 | #7 |
|
shabbir ive searched and i found some similar stuff but not exactly o nthe topic. i found only blocking by country in .htaccess with using php. and thats totally not what i want to do
![]() @ venami and i couldnt edit the post abouve but i wanted to say im happy i shown u something new with my question
|
|
Go4Expert Founder
|
![]() |
| 15Dec2009,09:41 | #8 |
|
Did you see Getting Visitor's Country with PHP using Geo IP
|
|
Go4Expert Member
|
|
| 15Dec2009,13:07 | #9 |
|
Quote:
Originally Posted by shabbir have a look: Code:
this code is suspossed to read the country code by using function include(). but now im not sure how to make working variabilities to redirect people from 9 countries [3 groups each for 3 countries] to 3 different adresses also not sure what kind iof redirect should be used. if somebody could have a look at this i would be pleased
|
|
Go4Expert Founder
|
![]() |
| 15Dec2009,20:02 | #10 |
|
Redirect should be plan header if possible or else could be anything you like but the 3 countries of 3 group looks very simple. Whats the issue there.
|