PX : code

Log Visitors by Mark Thiessen
Rating: 5.00
Download this code


<?$date = `date`;?>
<?$client=$number_of_last_visit;?>
<?$host=$REMOTE_HOST;?>
<?$addr=$REMOTE_ADDR;?>
<?$dir="/usr/local/share/apache/htdocs/website/orders/order.dat";?> 
<?$fp = fopen($dir, "a");fwrite($fp,"<tr><td>&nbsp;");fclose($fp);?>     
<?$fp = fopen($dir, "a");fwrite($fp,$client);fclose($fp);?>
<?$fp = fopen($dir, "a");fwrite($fp,"</td><td>&nbsp;");fclose($fp);?>
<?$fp = fopen($dir, "a");fwrite($fp,$date);fclose($fp);?>
<?$fp = fopen($dir, "a");fwrite($fp,"</td><td>&nbsp;");fclose($fp);?> 
<?$fp = fopen($dir, "a");fwrite($fp,$HTTP_REFERER."\n");fclose($fp);?>
<?$fp = fopen($dir, "a");fwrite($fp,"</td><td>&nbsp;");fclose($fp);?>
<?if (!isset($host)) {`echo $addr >> $dir`;} else {`echo $host >> $dir`;}?>
<?$fp = fopen($dir, "a");fwrite($fp,"</td></tr>");fclose($fp);?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.