Hi again,
Is there anyway of Zero filling the last octet. i.e. so that if $oct4 = 1, you could make it 001 ?
Thanks
LexZEUS wrote:
<?
$ip = "162.11.23.1";
$arr = explode(".",$ip);
$oct1 = $arr[0];
$oct2 = $arr[1];
$oct3 = $arr[2];
$oct4 = $arr[3];
?>
To get remote_host .... I don't think this is possible, (maybe in other CGI languages ??)
But, workstation name is not part of HTTP Header ...