Joshua44
11-10-2002, 12:22 AM
Is this the right code for getting the IP address, of the user that's visiting my site? If not, what is? Thanks....
$ip = gethostbyname($SERVER_NAME);
$ip = long2ip($ip);
Oh, one other thing, foreach() isn't working.... is this the right format???
<?
$newest[1] = "value";
$newest[2] = "";
$newest[3] = "";
$newest[4] = "";
$newest[5] = "";
?>
foreach($newest as $newnum) {
fputs($file, "\$newest[$count] = \"$new\";");
$count++;
}
$ip = gethostbyname($SERVER_NAME);
$ip = long2ip($ip);
Oh, one other thing, foreach() isn't working.... is this the right format???
<?
$newest[1] = "value";
$newest[2] = "";
$newest[3] = "";
$newest[4] = "";
$newest[5] = "";
?>
foreach($newest as $newnum) {
fputs($file, "\$newest[$count] = \"$new\";");
$count++;
}
