<?php $ip = $_SERVER['REMOTE_ADDR']; // gathers IP address of user $refer = $_SERVER['HTTP_REFERER']; // gathers referring page of user - good to see where clicks are$ $timestamp = date("Y-m-d H:i:s", time()); // timestamp $filedate = date("Ymd", time()); // creates file-friendly date format for log $file = $filedate . "-clicklog.csv"; // the log file name $handle = fopen($file, "a"); // open the file in write mode $stream = "$ip,$refer,$timestamp\n"; fwrite($handle, $stream); fclose($handle); // now redirect the user! header("Location:http://www.FinancialAidPodcast.com"); ?>


Page Information

  • 1 year ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts