Hey,
I'm in need of showing specific ads to users from specific countries, and I was intending to use following function to determine the country of a given user: geoip_country_name_by_name().
The question is; will running this function on each pageload result in any significant draining of my server resources?
Country-Specific Content
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Country-Specific Content
That certainly depends on geoip_country_name_by_name() does
Re: Country-Specific Content
Hmmm, I just found the function in the manual:
http://www.nusphere.com/kb/phpmanual/fu ... y-name.htm
http://www.nusphere.com/kb/phpmanual/fu ... y-name.htm
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Country-Specific Content
Ah yes, this is a native php function. My mistake.Terriator wrote:Hmmm, I just found the function in the manual:
http://www.nusphere.com/kb/phpmanual/fu ... y-name.htm