I have a tag board. I want to know how should I put the [remote addr] in this code to get IP addresses
<?
$date=date("M j Y g:i a");
$comment=StripSlashes($comment);
$nameA=$_GET['name'];
$siteA=$_GET['site'];
$commentA=$_GET['comment'];
if($nameA=="" && $siteA=="http://" && $commentA=="")
{
echo"<font face=verdana size=1 color=#000000>You did not enter any information.
<br><a href=view_shouts.php>Return</a></font>";
exit;
}
if($nameA=="" && $siteA=="" && $commentA=="")
{
echo"<font face=verdana size=1 color=#000000>You did not enter any information.
<br><a href=view_shouts.php>Return</a></font>";
exit;
}
if($nameA=="")
{
echo"<font face=verdana size=1 color=#000000>Please enter your name.
<br><a href=view_shouts.php>Return</a></font>";
exit;
}
if($commentA=="")
{
echo"<font face=verdana size=1 color=#000000>Please enter your comment.
<br><a href=view_shouts.php>Return</a></font>";
exit;
}
$filename="shout.txt";
$read=file("$filename");
if (filesize($filename)==0)
{
$data=$nameA."\t".$siteA."\t".$commentA."\t".$date;
}
if (filesize($filename)>0)
{
$data=$nameA."\t".$siteA."\t".$commentA."\t".$date."\n";
}
$fp=fopen($filename, "w");
fwrite($fp,$data);
$total = count($read);
for ($i = 0; $i <= $total; $i++)
{
fwrite($fp, "$read[$i]");
}
fclose($fp);
?>
<META HTTP-EQUIV=refresh content=0;URL=view_shouts.php>