Forum Moderators: DixonJones
<?php
$uri = "http://www.mysite.com" . $_SERVER['REQUEST_URI'];
$ip = $_SERVER['REMOTE_ADDR'];
$ref = $_SERVER['HTTP_REFERER'];
$dtime = date('r');
$unixtime=time();
$line = "$unixtime;$dtime;$ip;$uri;$ref";
$f = fopen("log.log", "a");
@fwrite($f, $line . "\n");
@fclose($f);
?>
and I've got this working in a fuction in an includes file but how could i do the same with javascript? so I could enter a piece of javascript. in each file?
Thank you.
If you can't see your log and you can't use server side scripting, change your web host.