[wplug] PHP help
Zach
netrek at gmail.com
Wed Jan 4 18:19:05 EST 2006
I would like the following script to save stats to a file called
"stats.txt" in the CWD (Linux).
Anyone know how modify the code to do this:
<?php
echo "<table border=\"1\">";
echo "<tr><td>Date/Time</td><td>".date('Y-m-d H:i:s')."</td></tr>";
foreach($_SERVER as $key=>$value) {
echo "<tr><td>".$key."</td><td>".$value."</td></tr>";
}
echo "</table>";
?>
I will include a copy of this in each page to log visitor stats.
Regards,
Zach
More information about the wplug
mailing list