shopkanji
04-07-2005, 07:06 PM
What is the best way to filter traffic using PHP?
I need to sort people that visit my website into US, UK, and everyone else.
The reason being is I plan on linking to some places where people can buy specialty printing papers. For my English pages, people in the US would be interested in the ANSI A (8.5x11”) paper from an American company, where people in the UK would be interested in the A4 (210mm x 297mm) paper from a UK company. As far as everyone else, I would link them to an American company selling A4 paper.
For clutter reasons, I have one link, say “Underwater Paper”, that redirects the person to a PHP script. I would like for the PHP script to determine the country of the person, and send them to the appropriate page.
Thanks
I need to sort people that visit my website into US, UK, and everyone else.
The reason being is I plan on linking to some places where people can buy specialty printing papers. For my English pages, people in the US would be interested in the ANSI A (8.5x11”) paper from an American company, where people in the UK would be interested in the A4 (210mm x 297mm) paper from a UK company. As far as everyone else, I would link them to an American company selling A4 paper.
For clutter reasons, I have one link, say “Underwater Paper”, that redirects the person to a PHP script. I would like for the PHP script to determine the country of the person, and send them to the appropriate page.
Thanks