javascript - Log how many people visited my site? -
is possible find out, how many people have visited website? javascript or html. if user on website, should count +1 or sth that. have no idea , have not tried yet. guys :)
try use code in php:
<? session_start(); $today = time(); $query="insert logged_in (today, sessionid, currentpage, browsertype, ip) values ('".$today."','".$_session['sesid']."','".$_server['php_self']."','".$_server['http_user_agent']."','".$_server['remote_addr']."')"; $result = mysql_query($query); ?>
but need logged_in table. hope you!
Comments
Post a Comment