NYCPHP Meetup

NYPHP.org

[nycphp-talk] php script

Radu Cirimpei emailradu_c at yahoo.com
Fri Feb 22 07:58:19 EST 2008


Hello,
If I use 'getenv("REMOTE_ADDR") ' for return the IP
address of the
 person visiting my site, what is the best to do? To
save in a variable, like '$ip = getenv("REMOTE_ADDR");
, then insert it in a database(MySQL),then take it
with a sql query and write it in another place saw
only by me?
<?php
$ip = getenv("REMOTE_ADDR") ;
?> -where can I place this? From the begin of
index.php?
Thank you very match!
Radu

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080222/89ca3396/attachment.html>


More information about the talk mailing list