Auto-complete City & Country

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
squeegee
Forum Newbie
Posts: 1
Joined: Sun Feb 26, 2006 8:48 pm

Auto-complete City & Country

Post by squeegee »

Tricks for doing cute things with PHP (note that tricks build on each other):

* HTTP Client
* Detect IP Address
* Detect Proxy
* XML Tag Parsing
* Geographic IP Lookup
* Auto-complete City & Country

http://www.joot.com/dave/writings/artic ... ples.shtml

SQUEEEEEGEE
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Code: Select all

function get_remote_ip() {
  return $_SERVER['REMOTE_ADDR'];
}
trick?
:?


Also this is the wrong forum
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

I like the function that checks for excessive profanity lol.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

The IP:Port checking has another flaw (I know you said it wasn't perfect, but yeah..) in that some people run servers on their home computers.. like me. ;)
Post Reply