faqts : Computers : Programming : Languages : PHP : Function Libraries

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 15 people (93%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

How to get a visitor's IP from the site?

Apr 23rd, 2004 01:47
Praveen Kumar Kukkapalli, Ken Ku,


You can get the user's IP address using the below code
<?php
print $_SERVER["REMOTE_ADDR"];
?>