Thanks responsding Ronald. I am still unable to retrieve the data from the textfile. Below is the PHP with the "echo" but I'm not sure I'm placing it right or writing the script correctly. Maybe the entire PHP is not complete.
<?php
{
$filename = "xxx.txt";
$fp = fopen( $filename,"r");
fclose( $fp );
$IP = $REMOTE_ADDR;
$Input = "IP:$IP";
$New = "$Input$OldData";
$fp = fopen( $filename,"w");
if(!$fp) die("&IP=unable to write $filename ......&");
fwrite($fp, $New, 100);
fclose( $fp );
}
{
$filename = "xxx.txt";
$fp = fopen( $filename,"r");
$Data = fread($fp, 100);
fclose( $fp );
echo "ID:=".$IP;
exit;
}
?>
I wish I was more advanced but that's wishful thinking. Perhaps you could point out where I'm falling down.