HuyPV
Wednesday, April 15, 2009
With PHP
<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo "Received request from IP: $ip";
?>
With ASP
<%
strIP = Request.ServerVariables("REMOTE_ADDR")
Response.Write "Your IP is " & strIP
%?
With JSP
<%
strIP = request.getRemoteAddr();
out.print("Your IP is " + strIP);
%?
Title:
Get IP Client
Description:
With PHP <?php $ip = $_SERVER['REMOTE_ADDR']; echo "Received request from IP: $ip"; ?> With ASP <% st...
...
Rating:
4