PHP Get User’s IP Address
Like this blog? Consider exploring one of our sponsored banner ads...
Getting the user’s IP address is extremely easy to do in PHP. Here is a snippet that I use, which includes a bit of grooming. Remember, never trust any input…
$ip = ereg_replace('([^[:digit:]\.])','',$_SERVER['REMOTE_ADDR']);
About this entry
You’re currently reading “PHP Get User’s IP Address,” an entry on BRADINO
- Published:
- 4.12.07 / 12am
- Category:
- PHP
- Tags:
No comments
Jump to comment form | comments rss [?]