NYCPHP Meetup

NYPHP.org

[nycphp-talk] Can Javascript call a PHP program and read the results?

Rob Marscher rmarscher at beaffinitive.com
Tue May 31 09:49:00 EDT 2011


>
> On May 30, 2011, at 2:42 AM, David Roth wrote:
> What I'm trying to do is get the county code of the user so that different
> links can be presented to them that matches their country. Serving up
> different links based on the country code would be handled by Javascript.
>

I'm not sure why the google library is saying you're in Canada.  MaxMind
provides a javascript api you can add to your page to get the visitor's
location from his/her ip address: http://www.maxmind.com/app/javascript_city
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20110531/a4c33883/attachment.html>


More information about the talk mailing list