PodCamp Community UnConferences

 

SessionMarketingPHP

<?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,$timestampn"; fwrite($handle, $stream); fclose($handle); // now redirect the user! header("Location:http://www.FinancialAidPodcast.com"); ?>

Comments (0)

You don't have permission to comment on this page.