1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php $IP = getenv("REMOTE_ADDR"); $host = getenv("HTTP_X_FORWARDED_FOR"); $creationDate = date("F j, Y, g:i a");
require("webadmin/configure.php");
$sql = "insert into counter (ip, date) values ('". $IP ."', '". $creationDate ."')"; mysql_query($sql);
//$result = mysql_query("SELECT count(*) as x FROM counter"); //$row = mysql_fetch_array($result,MYSQL_ASSOC); //echo "Visits: ". ($row{'x'}); ?>
|