This is a discussion on "Quick Question - Ip Adress" within the PHP Forum section. This forum, and the thread "Quick Question - Ip Adress are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Quick Question - Ip Adress
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Quick Question - Ip Adress
Is There any quick code to find the client/users IP Adress, i need it for a hit counter.
I recall coming across one in the past in a book for php but i dont have that resource anymore. thanks, Comp
__________________
www.MonsterCoding.com - Website Programming and Development Services |
|
|
|
#2
|
|||
|
|||
|
Re: Quick Question - Ip Adress
You can use $REMOTE_ADDR. example:
|
|
#3
|
|||
|
|||
|
Re: Quick Question - Ip Adress
That didnt work initially so i figured i needed a stricter version of that code, so i searched it on php.net, found
$_SERVER['REMOTE_ADDR']; and used that instead for it to work. thanks
__________________
www.MonsterCoding.com - Website Programming and Development Services |
|
#4
|
|||
|
|||
|
Re: Quick Question - Ip Adress
Weird, works fine for me.
|
![]() |
| Tags |
| quick, question, adress |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| quick question | capluvshll | Starting Out | 5 | May 2nd, 2007 19:13 |
| Quick question | extrememonkey | Website Planning | 0 | Mar 27th, 2007 17:56 |
| Quick Question | SolitarySoul | Website Planning | 4 | Mar 12th, 2007 15:45 |
| Quick question | Accurax | Web Page Design | 5 | Nov 1st, 2006 17:44 |