Page 1 of 1

Auto-complete City & Country

Posted: Sun Feb 26, 2006 8:50 pm
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

Posted: Sun Feb 26, 2006 9:02 pm
by josh

Code: Select all

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


Also this is the wrong forum

Posted: Sun Feb 26, 2006 9:28 pm
by Benjamin
I like the function that checks for excessive profanity lol.

Posted: Sun Feb 26, 2006 9:47 pm
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. ;)