Php related Interview questions and answers
Saturday, 31 March 2012
Q:How can get ip address using php
$ip=@$REMOTE_ADDR;
echo "<b>IP Address= $ip</b>";
IP address= 1.23.174.67
$ip=$_SERVER['REMOTE_ADDR'];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment