to get the ip address in php is really straight forward.
<?php
$ip_address = getenv("REMOTE_ADDR");
echo "$ip_address";
?>
and to find what browser they are using I made a script like this.
<?php
if (strstr($HTTP_USER_AGENT, 'Gecko')) $CurrentBrowser = "mozilla";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 6.0')) $CurrentBrowser = "Microsoft Internet Explorer 6.0";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 5.5')) $CurrentBrowser = "Microsoft Internet Explorer 5.5";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 5.16')) $CurrentBrowser = "Microsoft Internet Explorer 5.16";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 5.1')) $CurrentBrowser = "Microsoft Internet Explorer 5.1";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 5.0')) $CurrentBrowser = "Microsoft Internet Explorer 5.0";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 4.0')) $CurrentBrowser = "Microsoft Internet Explorer 4.0";
elseif (strstr($HTTP_USER_AGENT, 'MSIE 3.0')) $CurrentBrowser = "Microsoft Internet Explorer 3.0";
elseif (strstr($HTTP_USER_AGENT, 'Opera')) $CurrentBrowser = "Opera";
else $CurrentBrowser = "Unknown Browser";
echo $CurrentBrowser
?>
theres a million snippets on the web on how to write to a simple text file.(dont forget to chmod666)
heres one i found on a site
<?
// Get the document root
$doc_root = $HTTP_SERVER_VARS['DOCUMENT_ROOT'];
// Set file for opening
$fp = fopen("$doc_root/data.txt", 'w');
// Check if can write to file
if (!$fp) {
print 'Could not open desired file for writting';
}
// Set what will be written to file
$outputstring = "Hello World";
// Finally, write to file
fwrite($fp, $outputstring);
// Close the written file
fclose($fp);
?>
you can also use the gd library to display is a graphical table.
btw i love php coming from icky perl
fall down seven times, stand up eight